Swap assert.Equal parameters oders to follow convention

This commit is contained in:
Yoon Park 2023-04-05 22:01:40 +09:00
parent 330b5a2b8d
commit 934516791c

View File

@ -312,7 +312,7 @@ func TestValidateReservedMemory(t *testing.T) {
err := validateReservedMemory(tc.machineInfo, tc.nodeAllocatableReservation, tc.systemReservedMemory)
if strings.TrimSpace(tc.expectedError) != "" {
assert.Error(t, err)
assert.Equal(t, err.Error(), tc.expectedError)
assert.Equal(t, tc.expectedError, err.Error())
}
})
}