diff --git a/internal/proxy/proxy_test.go b/internal/proxy/proxy_test.go index 8c6bab13..2f11b377 100644 --- a/internal/proxy/proxy_test.go +++ b/internal/proxy/proxy_test.go @@ -270,11 +270,6 @@ func TestClientLimitsMaxConnections(t *testing.T) { } defer conn2.Close() - // try to read to check if the connection is closed - // wait only a second for the result (since nothing is writing to the - // socket) - conn2.SetReadDeadline(time.Now().Add(time.Second)) - wantEOF := func(t *testing.T, c net.Conn) { var got error for i := 0; i < 10; i++ { @@ -282,7 +277,7 @@ func TestClientLimitsMaxConnections(t *testing.T) { if got == io.EOF { return } - time.Sleep(500 * time.Millisecond) + time.Sleep(time.Second) } t.Fatalf("conn.Read should return io.EOF, got = %v", got) }