mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
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:
parent
25d3c1b068
commit
facba6c663
@ -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{}) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user