Skip to content

Commit aa46dde

Browse files
committed
TST: Increase buffer size of TestWriteFdNonblock
The default pipe size is 1M (see `man 7 pipe`), and this test is only trying to fill it with 100K, so increase the fill size so it isn't so flaky.
1 parent b5f2bd0 commit aa46dde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/sysfs/file_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func TestWriteFdNonblock(t *testing.T) {
100100
// Create a buffer (the content is not relevant)
101101
buf := make([]byte, 1024)
102102
// Write to the file until the pipe buffer gets filled up.
103-
numWrites := 100
103+
numWrites := 1111
104104
for i := 0; i < numWrites; i++ {
105105
_, e := writeFd(fd, buf)
106106
if e != 0 {

0 commit comments

Comments
 (0)