args_test: specify 2 args instead of 3 in TestExactValidArgs_WithInvalidArgs

This commit is contained in:
umarcor 2022-08-30 19:31:37 +02:00
parent b3982ec9bc
commit 83365ac14e

View file

@ -492,7 +492,7 @@ func TestExactValidArgs_WithInvalidCount_WithInvalidArgs(t *testing.T) {
}
func TestExactValidArgs_WithInvalidArgs(t *testing.T) {
c := getCommand(ExactValidArgs(3), true)
c := getCommand(ExactValidArgs(2), true)
_, err := executeCommand(c, "three", "a")
validOnlyWithInvalidArgs(err, t)
}