mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
kubeadm: use correct expected key when checking test results
Resulting key needs to be compared with the expected key which was set for the test case, not just a key.
This commit is contained in:
parent
e47fc04adc
commit
2d77d9a5a9
@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user