diff --git a/cmd/kubeadm/app/phases/certs/certs_test.go b/cmd/kubeadm/app/phases/certs/certs_test.go index 20bf5d4a74d..a77a33f95de 100644 --- a/cmd/kubeadm/app/phases/certs/certs_test.go +++ b/cmd/kubeadm/app/phases/certs/certs_test.go @@ -364,7 +364,7 @@ func TestWriteKeyFilesIfNotExist(t *testing.T) { } //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") } }