From eb5fbfb1b4a789194a1e2cd43fd3e85046564df3 Mon Sep 17 00:00:00 2001 From: Herman Slatman Date: Tue, 5 Mar 2024 23:20:46 +0100 Subject: [PATCH] Use `localhost` in the `step ca health` CA url --- command/ca/health_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/ca/health_test.go b/command/ca/health_test.go index 8748e5e31..7b422b4b3 100644 --- a/command/ca/health_test.go +++ b/command/ca/health_test.go @@ -88,7 +88,7 @@ func Test_healthAction(t *testing.T) { app := cli.NewApp() app.Commands = cli.Commands{caCommand} - err = app.Run([]string{"step", "ca", "health", "--root", rootFilepath, "--ca-url", fmt.Sprintf("https://127.0.0.1:%s", port)}) + err = app.Run([]string{"step", "ca", "health", "--root", rootFilepath, "--ca-url", fmt.Sprintf("https://localhost:%s", port)}) assert.NoError(t, err) // done testing; stop and wait for the server to quit