nixpkgs/pkgs/servers/teleport/test.patch
Yurii Matsiuk 7614ffb774
teleport: 6.2.7 -> 6.2.8
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
2021-08-04 14:06:51 +02:00

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)
}