Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/bootstrap')
-rw-r--r--internal/bootstrap/bootstrap_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/bootstrap/bootstrap_test.go b/internal/bootstrap/bootstrap_test.go
index 36be95673..de824fc2b 100644
--- a/internal/bootstrap/bootstrap_test.go
+++ b/internal/bootstrap/bootstrap_test.go
@@ -204,14 +204,14 @@ func TestPortReuse(t *testing.T) {
b, err := New()
require.NoError(t, err)
- l, err := b.listen("tcp", "0.0.0.0:")
+ l, err := b.listen("tcp", "localhost:")
require.NoError(t, err, "failed to bind")
addr = l.Addr().String()
_, port, err := net.SplitHostPort(addr)
require.NoError(t, err)
- l, err = b.listen("tcp", "0.0.0.0:"+port)
+ l, err = b.listen("tcp", "localhost:"+port)
require.NoError(t, err, "failed to bind")
require.NoError(t, l.Close())
}