Use assert.EqualValues for slice checking

This commit is contained in:
Bjørn Erik Pedersen 2018-11-19 10:38:40 +01:00
parent ae103d7e59
commit 06c7c0d9b3
No known key found for this signature in database
GPG Key ID: 330E6E2BD4859D8F
1 changed files with 1 additions and 1 deletions

View File

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