Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 7496084

Browse files
committed
Checking if passing empty buffor as stdin will fix the epoll eperm error
1 parent 6898646 commit 7496084

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/project_build_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
package tests_test
44

55
import (
6+
"bytes"
67
"fmt"
78
"os"
89
"os/exec"
@@ -30,6 +31,8 @@ func execCmd(tb testing.TB, dir, name string, args ...string) {
3031
"GOTRACEBACK=all",
3132
)
3233
c.Dir = dir
34+
buf := bytes.NewBufferString("")
35+
c.Stdin = buf
3336
c.Stdout = os.Stdout
3437
c.Stderr = os.Stderr
3538
assert.NilError(tb, c.Start())

0 commit comments

Comments
 (0)