client: Replace nil value testing with assert.Nil

Multiple errors in previous commit where `nil` is not being detected by `assert.Equal`
This commit is contained in:
Pavan BG 2021-05-21 14:18:01 +05:30
parent 25d3c1b068
commit facba6c663

View File

@ -31,7 +31,7 @@ func copyToInterface(msg ...string) []interface{} {
func AssertNil(t *testing.T, v interface{}) {
t.Helper()
assert.Equal(t, nil, v)
assert.Nil(t, v)
}
func AssertNotNil(t *testing.T, v interface{}) {