diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2020-01-22 02:30:49 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2020-01-22 02:30:49 +0300 |
commit | e6056c5fce0a4a2f685fa606706d6d3389b1f96a (patch) | |
tree | de72f8ddab0eef248508f1651cdaa978186cd38b /multi_string_flag_test.go | |
parent | 2b0598b951c81610977b685d9cff0286fac91dc6 (diff) |
update error message for multistringflag Set and update unit test
Diffstat (limited to 'multi_string_flag_test.go')
-rw-r--r-- | multi_string_flag_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/multi_string_flag_test.go b/multi_string_flag_test.go index cca0fd05..5cddac98 100644 --- a/multi_string_flag_test.go +++ b/multi_string_flag_test.go @@ -16,7 +16,7 @@ func TestMultiStringFlagAppendsOnSet(t *testing.T) { require.NoError(t, iface.Set("foo")) require.NoError(t, iface.Set("bar")) - require.Error(t, iface.Set(""), errMultiStringSetEmptyValue) + require.EqualError(t, iface.Set(""), "value cannot be empty") require.Equal(t, MultiStringFlag{"foo", "bar"}, concrete) } |