mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
7614ffb774
Patch tests to lower the number of active connections to fix: --- FAIL: TestResolveDefaultAddrTimeoutBeforeAllRacersLaunched (0.28s) panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: socket: too many open files
14 lines
542 B
Diff
14 lines
542 B
Diff
diff --git a/tool/tsh/resolve_default_addr_test.go b/tool/tsh/resolve_default_addr_test.go
|
|
index d5976f156..aec5199aa 100644
|
|
--- a/tool/tsh/resolve_default_addr_test.go
|
|
+++ b/tool/tsh/resolve_default_addr_test.go
|
|
@@ -237,7 +237,7 @@ func TestResolveDefaultAddrTimeoutBeforeAllRacersLaunched(t *testing.T) {
|
|
|
|
blockingHandler, doneCh := newWaitForeverHandler()
|
|
|
|
- servers := make([]*httptest.Server, 1000)
|
|
+ servers := make([]*httptest.Server, 100)
|
|
for i := 0; i < len(servers); i++ {
|
|
servers[i] = makeTestServer(t, blockingHandler)
|
|
}
|