mirror of
https://github.com/golang/go
synced 2024-10-01 21:54:53 +00:00
net: use /dev/null for TestSplice of big file to fix the test flakes on linux-riscv64-jsing
Fixes #58787 Change-Id: Ia6e9ee0d8dd505f64bfe9ffd23a868b8165f550f Reviewed-on: https://go-review.googlesource.com/c/go/+/471995 Reviewed-by: Bryan Mills <bcmills@google.com> Run-TryBot: Andy Pan <panjf2000@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
This commit is contained in:
parent
6dd20f4f12
commit
4a9c84d0b7
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue