Skip to content

Commit

Permalink
wait for result
Browse files Browse the repository at this point in the history
  • Loading branch information
dadgar committed Jun 1, 2018
1 parent fe18315 commit 7f7a24d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions client/driver/raw_exec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,16 @@ func TestRawExecDriver_Start_Kill_Wait_Cgroup(t *testing.T) {
if err := process.Signal(syscall.Signal(0)); err == nil {
t.Fatalf("process should not exist: %v", pid)
}

testutil.WaitForResult(func() (bool, error) {
if err := process.Signal(syscall.Signal(0)); err == nil {
return false, fmt.Errorf("process should not exist: %v", pid)
}

return true, nil
}, func(err error) {
t.Fatalf("err: %v", err)
})
}

func TestRawExecDriver_HandlerExec(t *testing.T) {
Expand Down

0 comments on commit 7f7a24d

Please sign in to comment.