From 1acf0973f7d66fb9e29b7075c3307cf9bd0a58cf Mon Sep 17 00:00:00 2001 From: "r.v.stupnikov" Date: Mon, 4 Jul 2022 19:13:33 +0400 Subject: [PATCH] feat: fix unit test --- cmd/cli/handler_janitor_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cli/handler_janitor_test.go b/cmd/cli/handler_janitor_test.go index ce694ee914e..92247523791 100644 --- a/cmd/cli/handler_janitor_test.go +++ b/cmd/cli/handler_janitor_test.go @@ -303,7 +303,7 @@ func TestJanitorHandler_Arguments(t *testing.T) { "janitor", "memory") require.Error(t, err) - require.Contains(t, err.Error(), "Janitor requires at least one of --tokens, --requests or --grants to be set") + require.Contains(t, err.Error(), "Janitor requires at least one of --tokens, --requests, --grants or --login-sessions to be set") cmdx.ExecNoErr(t, cmd.NewRootCmd(nil, nil, nil), "janitor",