Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8f2fa52

Browse files
committed
skip non-linux OS
1 parent 2806ab9 commit 8f2fa52

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

agent/reaper/reaper_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package reaper_test
22

33
import (
44
"os/exec"
5+
"runtime"
56
"testing"
67
"time"
78

@@ -14,6 +15,10 @@ import (
1415
func TestReap(t *testing.T) {
1516
t.Parallel()
1617

18+
if runtime.GOOS != "linux" {
19+
t.Skipf("Skipping non-Linux OS %q", runtime.GOOS)
20+
}
21+
1722
// Because we're forkexecing these tests will try to run twice...
1823
if reaper.IsChild() {
1924
t.Skip("I'm a child!")

0 commit comments

Comments
 (0)