Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1703e6d commit 2806ab9Copy full SHA for 2806ab9
agent/reaper/reaper_test.go
@@ -1,7 +1,6 @@
1
package reaper_test
2
3
import (
4
- "fmt"
5
"os/exec"
6
"testing"
7
"time"
@@ -28,11 +27,11 @@ func TestReap(t *testing.T) {
28
27
err := reaper.ForkReap(pids)
29
require.NoError(t, err)
30
31
- cmd := exec.Command("sleep", "5")
+ cmd := exec.Command("tail", "-f", "/dev/null")
32
err = cmd.Start()
33
34
35
- cmd2 := exec.Command("sleep", "5")
+ cmd2 := exec.Command("tail", "-f", "/dev/null")
36
err = cmd2.Start()
37
38
@@ -50,7 +49,6 @@ func TestReap(t *testing.T) {
50
49
case <-deadline.C:
51
t.Fatalf("Timed out waiting for process")
52
case pid := <-pids:
53
- fmt.Println("pid: ", pid)
54
require.Contains(t, expectedPIDs, pid)
55
}
56
0 commit comments