Skip to content

Commit

Permalink
go_1_9: skip flaky TestServerCancelsReadTimeoutWhenIdle
Browse files Browse the repository at this point in the history
  • Loading branch information
orivej committed Nov 17, 2017
1 parent 61090c8 commit 3ac474a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
6 changes: 1 addition & 5 deletions pkgs/development/compilers/go/1.9.nix
Expand Up @@ -118,11 +118,7 @@ stdenv.mkDerivation rec {
./ssl-cert-file-1.9.patch
./creds-test.patch
./remove-test-pie-1.9.patch

(fetchpatch {
url = "https://github.com/golang/go/commit/29415eb2b92e78481897c4161ba99f5b09fa6102.patch";
sha256 = "01jkm4b2dazzjnfla7rdd0w2clzplga3zza6ybpmkjkk3i4bp73d";
})
./go-1.9-skip-flaky-19608.patch
];

postPatch = optionalString stdenv.isDarwin ''
Expand Down
12 changes: 12 additions & 0 deletions pkgs/development/compilers/go/go-1.9-skip-flaky-19608.patch
@@ -0,0 +1,12 @@
diff --git a/src/net/http/serve_test.go b/src/net/http/serve_test.go
index 7137599..43cca2e 100644
--- a/src/net/http/serve_test.go
+++ b/src/net/http/serve_test.go
@@ -5361,6 +5361,7 @@ func testServerKeepAlivesEnabled(t *testing.T, h2 bool) {
// the server's doing its 1-byte background read between requests,
// waiting for the connection to maybe close.
func TestServerCancelsReadTimeoutWhenIdle(t *testing.T) {
+ testenv.SkipFlaky(t, 19608)
setParallel(t)
defer afterTest(t)
const timeout = 250 * time.Millisecond

0 comments on commit 3ac474a

Please sign in to comment.