aboutsummaryrefslogtreecommitdiff
path: root/prefork
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <oleksandr.red+github@gmail.com> 2023-02-15 12:56:23 +0200
committerGravatar GitHub <noreply@github.com> 2023-02-15 11:56:23 +0100
commit2ab79063af85601f532e85c3071c7f993b92fba5 (patch)
tree0a697797c776a7f093f1c717109561668151cdaa /prefork
parenttest: close response body (#1496) (diff)
downloadfasthttp-2ab79063af85601f532e85c3071c7f993b92fba5.tar.gz
fasthttp-2ab79063af85601f532e85c3071c7f993b92fba5.tar.bz2
fasthttp-2ab79063af85601f532e85c3071c7f993b92fba5.zip
test: bind to localhost instead of all interfaces (#1495)
Co-authored-by: Oleksandr Redko <oleksandr.redko@clarity-ag.net>
Diffstat (limited to 'prefork')
-rw-r--r--prefork/prefork_test.go2
1 files changed, 1 insertions, 1 deletions
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) {