From 8f36467107d623e94638e2dd4c625e34f670384d Mon Sep 17 00:00:00 2001 From: Louis Opter Date: Wed, 10 Jul 2013 16:05:14 -0700 Subject: [PATCH] Raise the timeouts for the TCP/UDP localhost proxy tests Sometimes these tests fail, let's see if that improves the situation. --- runtime_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime_test.go b/runtime_test.go index 6b94e5ce2c..6e64d9e39c 100644 --- a/runtime_test.go +++ b/runtime_test.go @@ -396,7 +396,7 @@ func TestAllocateTCPPortLocalhost(t *testing.T) { } buf := make([]byte, 16) read := 0 - conn.SetReadDeadline(time.Now().Add(2 * time.Second)) + conn.SetReadDeadline(time.Now().Add(4 * time.Second)) read, err = conn.Read(buf) if err != nil { t.Fatal(err) @@ -421,7 +421,7 @@ func TestAllocateUDPPortLocalhost(t *testing.T) { input := bytes.NewBufferString("well hello there\n") buf := make([]byte, 16) - for i := 0; i != 10; i++ { + for i := 0; i != 20; i++ { _, err := conn.Write(input.Bytes()) if err != nil { t.Fatal(err)