aboutsummaryrefslogtreecommitdiffhomepage
path: root/command/unreachable_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'command/unreachable_test.go')
-rw-r--r--command/unreachable_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/command/unreachable_test.go b/command/unreachable_test.go
index 9ace4794..71408189 100644
--- a/command/unreachable_test.go
+++ b/command/unreachable_test.go
@@ -24,10 +24,10 @@ func TestParseUnreachable(t *testing.T) {
// a node with descendents must not have a direct handler
t.Run("sub handle conflict", func(t *testing.T) {
defer checkRecover(t, "Parse", "invalid subcommand tree state")
- n := newNode(panicWriter{}, nil, " ", "")
+ n := newNode(panicWriter{}, nil, " ", " ")
n.adopt(newNode(panicWriter{}, nil, " ", " "))
n.f = func([]string) error { panic("unreachable") }
- _ = n.Parse(nil)
+ _ = n.Parse([]string{" "})
})
// this would only happen if a node was matched twice