Skip to content

Commit

Permalink
Make sure the JSON config file test fails.
Browse files Browse the repository at this point in the history
A command-line parameter ought to override a default value from a JSON
configuration file.
See issue jpillora#25
  • Loading branch information
VonC committed Mar 12, 2022
1 parent 7e2bf77 commit f07ef50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ func TestJSON(t *testing.T) {
t.Fatal(err)
}
check(t, c.Foo, `hello`)
check(t, c.Bar, 7) //currently uses JSON value... might change...
check(t, c.Bar, 8) // JSON value overridden by command-line option parameter
}

func TestArg(t *testing.T) {
Expand Down

0 comments on commit f07ef50

Please sign in to comment.