test: bind to localhost instead of all interfaces (#1495)

Co-authored-by: Oleksandr Redko <oleksandr.redko@clarity-ag.net>
This commit is contained in:
Oleksandr Redko
2023-02-15 12:56:23 +02:00
committed by GitHub
parent b79a03aaf9
commit 2ab79063af
+1 -1
View File
@@ -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) {