mirror of https://github.com/k3s-io/k3s
Merge pull request #59317 from CaoShuFeng/assert_Equal
Automatic merge from submit-queue (batch tested with PRs 62448, 59317, 59947, 62418, 62352). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. fix assert.Equal argument order Reference: https://godoc.org/github.com/stretchr/testify/assert#Equal **What this PR does / why we need it**: **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```pull/8/head
commit
60141cdfd9
|
@ -342,5 +342,5 @@ func TestGenerateMountBindings(t *testing.T) {
|
|||
}
|
||||
result := generateMountBindings(mounts)
|
||||
|
||||
assert.Equal(t, result, expectedResult)
|
||||
assert.Equal(t, expectedResult, result)
|
||||
}
|
||||
|
|
|
@ -2340,7 +2340,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