forked from mirror/viper
Use assert.EqualValues for slice checking
This commit is contained in:
parent
ae103d7e59
commit
06c7c0d9b3
|
@ -650,7 +650,7 @@ func TestBindPFlagsStringSlice(t *testing.T) {
|
||||||
t.Fatalf("%+#v cannot unmarshal: %s", testValue.Value, err)
|
t.Fatalf("%+#v cannot unmarshal: %s", testValue.Value, err)
|
||||||
}
|
}
|
||||||
if changed {
|
if changed {
|
||||||
assert.Equal(t, testValue.Expected, val.StringSlice)
|
assert.EqualValues(t, testValue.Expected, val.StringSlice)
|
||||||
} else {
|
} else {
|
||||||
assert.Equal(t, defaultVal, val.StringSlice)
|
assert.Equal(t, defaultVal, val.StringSlice)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue