mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
Update error assertation
This commit is contained in:
parent
f0046a7194
commit
9a6319b23c
@ -150,9 +150,8 @@ func TestEnsureNodeExistsByProviderID(t *testing.T) {
|
|||||||
|
|
||||||
instances, _ := fc.Instances()
|
instances, _ := fc.Instances()
|
||||||
exists, err := ensureNodeExistsByProviderID(instances, tc.node)
|
exists, err := ensureNodeExistsByProviderID(instances, tc.node)
|
||||||
if tc.providerIDErr == nil {
|
assert.Equal(t, err, tc.providerIDErr)
|
||||||
assert.NoError(t, err)
|
|
||||||
}
|
|
||||||
assert.EqualValues(t, tc.expectedCalls, fc.Calls,
|
assert.EqualValues(t, tc.expectedCalls, fc.Calls,
|
||||||
"expected cloud provider methods `%v` to be called but `%v` was called ",
|
"expected cloud provider methods `%v` to be called but `%v` was called ",
|
||||||
tc.expectedCalls, fc.Calls)
|
tc.expectedCalls, fc.Calls)
|
||||||
|
Loading…
Reference in New Issue
Block a user