mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
test/integration: wait a background process
Otherwise this process can be killed before it prints the test message. PiperOrigin-RevId: 258448204
This commit is contained in:
@@ -32,7 +32,7 @@ func TestBindOverlay(t *testing.T) {
|
||||
}
|
||||
d := testutil.MakeDocker("bind-overlay-test")
|
||||
|
||||
cmd := "nc -l -U /var/run/sock& sleep 1 && echo foobar-asdf | nc -U /var/run/sock"
|
||||
cmd := "nc -l -U /var/run/sock & p=$! && sleep 1 && echo foobar-asdf | nc -U /var/run/sock && wait $p"
|
||||
got, err := d.RunFg("ubuntu:trusty", "bash", "-c", cmd)
|
||||
if err != nil {
|
||||
t.Fatal("docker run failed:", err)
|
||||
|
||||
Reference in New Issue
Block a user