mirror of https://github.com/k3s-io/k3s
fix assert.Equal argument order
Reference: https://godoc.org/github.com/stretchr/testify/assert#Equalpull/8/head
parent
d5ee83bda0
commit
f95bc9289d
|
@ -342,5 +342,5 @@ func TestGenerateMountBindings(t *testing.T) {
|
|||
}
|
||||
result := generateMountBindings(mounts)
|
||||
|
||||
assert.Equal(t, result, expectedResult)
|
||||
assert.Equal(t, expectedResult, result)
|
||||
}
|
||||
|
|
|
@ -2309,7 +2309,7 @@ func TestPreferValidatedPSP(t *testing.T) {
|
|||
_, pspName, validationErrs, err := plugin.computeSecurityContext(attrs, pod, false, tc.validatedPSPHint)
|
||||
assert.NoError(t, err)
|
||||
assert.Len(t, validationErrs, tc.expectValidationErrs)
|
||||
assert.Equal(t, pspName, tc.expectedPSP)
|
||||
assert.Equal(t, tc.expectedPSP, pspName)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ func TestGrowth(t *testing.T) {
|
|||
}
|
||||
assert.Equalf(t, x, read, "expected to have read %d items: %d", x, read)
|
||||
assert.Zerof(t, g.readable, "expected readable to be zero: %d", g.readable)
|
||||
assert.Equalf(t, g.n, 16, "expected N to be 16: %d", g.n)
|
||||
assert.Equalf(t, 16, g.n, "expected N to be 16: %d", g.n)
|
||||
}
|
||||
|
||||
func TestEmpty(t *testing.T) {
|
||||
|
|
Loading…
Reference in New Issue