From a296c103c1ba1bc16dc346c9b0417a337d26183f Mon Sep 17 00:00:00 2001 From: rsteube Date: Tue, 22 Aug 2023 01:48:18 +0200 Subject: [PATCH] fix test --- action_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/action_test.go b/action_test.go index 64ee89ec..1c67c56f 100644 --- a/action_test.go +++ b/action_test.go @@ -227,9 +227,11 @@ func TestActionMessageSuppress(t *testing.T) { } func TestActionExecCommand(t *testing.T) { + context := NewContext() + context.Value = "docs/" assertEqual(t, - ActionMessage("go unknown: unknown command").Invoke(Context{}).Prefix("docs/"), - ActionExecCommand("go", "unknown")(func(output []byte) Action { return ActionValues() }).Invoke(Context{Value: "docs/"}), + ActionMessage("go unknown: unknown command").Invoke(NewContext()).Prefix("docs/"), + ActionExecCommand("go", "unknown")(func(output []byte) Action { return ActionValues() }).Invoke(context), ) assertEqual(t,