From 2ab79063af85601f532e85c3071c7f993b92fba5 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Wed, 15 Feb 2023 12:56:23 +0200 Subject: [PATCH] test: bind to localhost instead of all interfaces (#1495) Co-authored-by: Oleksandr Redko --- prefork/prefork_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prefork/prefork_test.go b/prefork/prefork_test.go index 9a9a873..fabf185 100644 --- a/prefork/prefork_test.go +++ b/prefork/prefork_test.go @@ -21,7 +21,7 @@ func tearDown() { } func getAddr() string { - return fmt.Sprintf("0.0.0.0:%d", rand.Intn(9000-3000)+3000) + return fmt.Sprintf("127.0.0.1:%d", rand.Intn(9000-3000)+3000) } func Test_IsChild(t *testing.T) {