summaryrefslogtreecommitdiffhomepage
path: root/runsc/test/integration/regression_test.go
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@google.com>2019-07-16 15:05:12 -0700
committergVisor bot <gvisor-bot@google.com>2019-07-16 15:06:17 -0700
commit89368456d86e2329c46594490c58cfc51c9c7c92 (patch)
treeb1213153a2b85e5eb35891099fd384a180912760 /runsc/test/integration/regression_test.go
parent74dc663bbbc9531556acd4462725b0c07e64f28d (diff)
test/integration: wait a background process
Otherwise this process can be killed before it prints the test message. PiperOrigin-RevId: 258448204
Diffstat (limited to 'runsc/test/integration/regression_test.go')
-rw-r--r--runsc/test/integration/regression_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/test/integration/regression_test.go b/runsc/test/integration/regression_test.go
index 39b30e757..fb68dda99 100644
--- a/runsc/test/integration/regression_test.go
+++ b/runsc/test/integration/regression_test.go
@@ -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)