diff options
| author | Ian Lance Taylor <iant@golang.org> | 2018-12-03 15:45:10 -0800 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2018-12-04 03:32:16 +0000 |
| commit | f91fd4f9da04f7675e5ef7dee2c70ae5059f5eed (patch) | |
| tree | fc8b39eaf2df2b387233c7156d822aeca3c97644 /src/os/pipe_test.go | |
| parent | c2412a7681d5beaeb5a4ceef3b2b7886361282ce (diff) | |
| download | go-f91fd4f9da04f7675e5ef7dee2c70ae5059f5eed.tar.xz | |
os: increase default write size for TestClosedPipeRaceWrite
The original value of 65537 consistently caused the test to fail on
Solaris. The new value of 131073 consistently lets the test pass.
Change-Id: If1a76ab89aa8f661ea049113addd04b23a116534
Reviewed-on: https://go-review.googlesource.com/c/152164
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/os/pipe_test.go')
| -rw-r--r-- | src/os/pipe_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/pipe_test.go b/src/os/pipe_test.go index 59d31e5837..779b2bdf85 100644 --- a/src/os/pipe_test.go +++ b/src/os/pipe_test.go @@ -131,7 +131,7 @@ func testClosedPipeRace(t *testing.T, read bool) { if !read { // Get the amount we have to write to overload a pipe // with no reader. - limit = 65537 + limit = 131073 if b, err := ioutil.ReadFile("/proc/sys/fs/pipe-max-size"); err == nil { if i, err := strconv.Atoi(strings.TrimSpace(string(b))); err == nil { limit = i + 1 |
