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 a4e11c8 commit 657dd1e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions client/driver/raw_exec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,15 @@ func TestRawExecDriver_Start_Kill_Wait_Cgroup(t *testing.T) {
t.Fatalf("timeout")
}

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 657dd1e

Please sign in to comment.