diff --git a/cmd/cli/handler_janitor_test.go b/cmd/cli/handler_janitor_test.go index 3a40169db0b..653a0bd6e00 100644 --- a/cmd/cli/handler_janitor_test.go +++ b/cmd/cli/handler_janitor_test.go @@ -302,7 +302,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(), "janitor",