From c24d9785dcff2150f813c4adb06ba764ac46be8d Mon Sep 17 00:00:00 2001 From: absolutelightning Date: Fri, 15 Sep 2023 09:56:23 +0530 Subject: [PATCH] debug test fix --- command/debug/debug_test.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/command/debug/debug_test.go b/command/debug/debug_test.go index dc5dda23498b..fa58118a4ea3 100644 --- a/command/debug/debug_test.go +++ b/command/debug/debug_test.go @@ -100,12 +100,10 @@ func TestDebugCommand_WithSinceFlag(t *testing.T) { t.Skip("too slow for testing.Short") } - a := agent.NewTestAgent(t, ` - enable_debug = true - `) + server, err := testutil.NewTestServerConfigT(t, nil) + require.NoError(t, err) - defer a.Shutdown() - testrpc.WaitForLeader(t, a.RPC, "dc1") + server.WaitForLeader(t) ui := cli.NewMockUi() cmd := New(ui)