diff --git a/api/api_test.go b/api/api_test.go index 856bf623233a..230d8f9fdfa5 100644 --- a/api/api_test.go +++ b/api/api_test.go @@ -1061,7 +1061,7 @@ func TestAPI_UnixSocket(t *testing.T) { socket := filepath.Join(tempDir, "test.sock") c, s := makeClientWithConfig(t, func(c *Config) { - c.Address = "localhost" + c.Address = "unix://" + socket }, func(c *testutil.TestServerConfig) { c.Addresses = &testutil.TestAddressConfig{ HTTP: "unix://" + socket,