Skip to content

Commit

Permalink
net: use /dev/null for TestSplice of big file to fix the test flakes …
Browse files Browse the repository at this point in the history
…on linux-riscv64-jsing

Fixes #58787

Change-Id: Ia6e9ee0d8dd505f64bfe9ffd23a868b8165f550f
Reviewed-on: https://go-review.googlesource.com/c/go/+/471995
Reviewed-by: Bryan Mills <[email protected]>
Run-TryBot: Andy Pan <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Dmitri Shuralyov <[email protected]>
Auto-Submit: Ian Lance Taylor <[email protected]>
  • Loading branch information
panjf2000 authored and gopherbot committed Feb 28, 2023
1 parent 6dd20f4 commit 4a9c84d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/splice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (tc spliceTestCase) test(t *testing.T) {
}

func (tc spliceTestCase) testFile(t *testing.T) {
f, err := os.CreateTemp(t.TempDir(), "linux-splice-to-file")
f, err := os.OpenFile(os.DevNull, os.O_WRONLY, 0)
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 4a9c84d

Please sign in to comment.