client: Replace nil value testing with assert.Nil

Multiple errors in previous commit where `nil` is not being detected by `assert.Equal`
dependabot/go_modules/go.uber.org/atomic-1.10.0
Pavan BG 2021-05-21 14:18:01 +05:30
parent 25d3c1b068
commit facba6c663
1 changed files with 1 additions and 1 deletions

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{}) {