forked from security/hakurei
container/dispatcher: remove wait4 test log
Turns out the reporting methods are not safe for concurrent use, despite the claim in testing.T doc comment. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -650,7 +650,6 @@ func (k *kstub) wait4(pid int, wstatus *syscall.WaitStatus, options int, rusage
|
||||
expect := k.Expects("wait4")
|
||||
// special case to prevent leaking the wait4 goroutine when testing initEntrypoint
|
||||
if v, ok := expect.Args[4].(int); ok && v == stub.PanicExit {
|
||||
k.Log("terminating current goroutine as requested by kexpect")
|
||||
panic(stub.PanicExit)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user