Skip to content

Commit dca968b

Browse files
authored
Merge pull request kubernetes#76381 from rojkov/wrong-key
kubeadm: use correct expected key when checking test results
2 parents ae1e476 + 2d77d9a commit dca968b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/kubeadm/app/phases/certs/certs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ func TestWriteKeyFilesIfNotExist(t *testing.T) {
364364
}
365365

366366
//TODO: check if there is a better method to compare keys
367-
if resultingKey.D == key.D {
367+
if resultingKey.D == test.expectedKey.D {
368368
t.Error("created key does not match expected key")
369369
}
370370
}

0 commit comments

Comments
 (0)