From ec9e3e62a1282fb7c9afc0dfd2339511e384b277 Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Fri, 23 Aug 2013 15:07:42 +1000 Subject: [PATCH] net: wait longer before failing TestVariousDeadlines4Proc on windows This is an attempt to make our slow windows-386 builder more reliable. R=golang-dev, dave CC=golang-dev https://golang.org/cl/12798045 --- src/pkg/net/timeout_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pkg/net/timeout_test.go b/src/pkg/net/timeout_test.go index 7ea81fe34b..350ec8f7b1 100644 --- a/src/pkg/net/timeout_test.go +++ b/src/pkg/net/timeout_test.go @@ -496,7 +496,10 @@ func testVariousDeadlines(t *testing.T, maxProcs int) { clientc <- copyRes{n, err, d} }() - const tooLong = 2000 * time.Millisecond + tooLong := 2 * time.Second + if runtime.GOOS == "windows" { + tooLong = 5 * time.Second + } select { case res := <-clientc: if isTimeout(res.err) { -- 2.48.1