From 8fb3860e7dcb6a0f8387c0519a93f60bd2d2bc4b Mon Sep 17 00:00:00 2001 From: Kuba Wieczorek Date: Mon, 3 Apr 2023 17:32:23 +0100 Subject: [PATCH] Update TestDebugCommand_NoConnection to work when run in an environment with working Vault (#19942) --- command/debug_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/command/debug_test.go b/command/debug_test.go index 046474af8660..de51c770f5ac 100644 --- a/command/debug_test.go +++ b/command/debug_test.go @@ -534,6 +534,10 @@ func TestDebugCommand_NoConnection(t *testing.T) { t.Fatal(err) } + if err := client.SetAddress(""); err != nil { + t.Fatal(err) + } + _, cmd := testDebugCommand(t) cmd.client = client cmd.skipTimingChecks = true