mirror of
https://github.com/spf13/viper
synced 2024-11-16 10:07:00 +00:00
Use assert.EqualValues for slice checking
This commit is contained in:
parent
ae103d7e59
commit
06c7c0d9b3
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue