check error in test

This commit is contained in:
Alex Flint 2019-04-30 11:16:10 -07:00
parent f282f71f26
commit 7df132abe8
1 changed files with 1 additions and 0 deletions

View File

@ -979,6 +979,7 @@ func TestReuseParser(t *testing.T) {
require.NoError(t, err) require.NoError(t, err)
err = p.Parse([]string{"--foo=abc"}) err = p.Parse([]string{"--foo=abc"})
require.NoError(t, err)
assert.Equal(t, args.Foo, "abc") assert.Equal(t, args.Foo, "abc")
err = p.Parse([]string{}) err = p.Parse([]string{})