Skip to content

Commit 3ac474a

Browse files
committedNov 17, 2017
go_1_9: skip flaky TestServerCancelsReadTimeoutWhenIdle
golang/go#19608 https://hydra.nixos.org/build/64329767/nixlog/1 https://hydra.nixos.org/build/64244716/nixlog/1 Remove the patch for golang/go#21559 because it is skipped as flaky since Go 1.9.2.
1 parent 61090c8 commit 3ac474a

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed
 

Diff for: ‎pkgs/development/compilers/go/1.9.nix

+1-5
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,7 @@ stdenv.mkDerivation rec {
118118
./ssl-cert-file-1.9.patch
119119
./creds-test.patch
120120
./remove-test-pie-1.9.patch
121-
122-
(fetchpatch {
123-
url = "https://github.com/golang/go/commit/29415eb2b92e78481897c4161ba99f5b09fa6102.patch";
124-
sha256 = "01jkm4b2dazzjnfla7rdd0w2clzplga3zza6ybpmkjkk3i4bp73d";
125-
})
121+
./go-1.9-skip-flaky-19608.patch
126122
];
127123

128124
postPatch = optionalString stdenv.isDarwin ''
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/src/net/http/serve_test.go b/src/net/http/serve_test.go
2+
index 7137599..43cca2e 100644
3+
--- a/src/net/http/serve_test.go
4+
+++ b/src/net/http/serve_test.go
5+
@@ -5361,6 +5361,7 @@ func testServerKeepAlivesEnabled(t *testing.T, h2 bool) {
6+
// the server's doing its 1-byte background read between requests,
7+
// waiting for the connection to maybe close.
8+
func TestServerCancelsReadTimeoutWhenIdle(t *testing.T) {
9+
+ testenv.SkipFlaky(t, 19608)
10+
setParallel(t)
11+
defer afterTest(t)
12+
const timeout = 250 * time.Millisecond

0 commit comments

Comments
 (0)
Please sign in to comment.