mirror of
https://github.com/spf13/cobra
synced 2025-05-05 04:47:22 +00:00
args_test: specify 2 args instead of 3 in TestExactValidArgs_WithInvalidCount_WithInvalidArgs
This commit is contained in:
parent
83365ac14e
commit
4e31482378
1 changed files with 1 additions and 1 deletions
|
@ -486,7 +486,7 @@ func TestExactValidArgs_WithInvalidCount(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestExactValidArgs_WithInvalidCount_WithInvalidArgs(t *testing.T) {
|
||||
c := getCommand(ExactValidArgs(3), true)
|
||||
c := getCommand(ExactValidArgs(2), true)
|
||||
_, err := executeCommand(c, "three", "a", "two")
|
||||
exactArgsWithInvalidCount(err, t)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue