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_WithInvalidArgs
This commit is contained in:
parent
b3982ec9bc
commit
83365ac14e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue