Merge pull request #76381 from rojkov/wrong-key

kubeadm: use correct expected key when checking test results
This commit is contained in:
Kubernetes Prow Robot 2019-04-11 05:22:11 -07:00 committed by GitHub
commit dca968b078
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -364,7 +364,7 @@ func TestWriteKeyFilesIfNotExist(t *testing.T) {
} }
//TODO: check if there is a better method to compare keys //TODO: check if there is a better method to compare keys
if resultingKey.D == key.D { if resultingKey.D == test.expectedKey.D {
t.Error("created key does not match expected key") t.Error("created key does not match expected key")
} }
} }