From 9a30215886dbd8f5c2c089f1815f8aa3e29384e2 Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Fri, 31 May 2024 17:38:32 -0700 Subject: [PATCH] tests: avoid early shutdown of sandbox Because sandbox is closed down when the main test that created the sandbox returns it can't have subtests that set themselves as parallel as they would continue to run in a different lifecycle. Signed-off-by: Tonis Tiigi --- tests/dialstdio.go | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/tests/dialstdio.go b/tests/dialstdio.go index 4a034a5f..a18e6178 100644 --- a/tests/dialstdio.go +++ b/tests/dialstdio.go @@ -113,13 +113,10 @@ func testDialStdio(t *testing.T, sb integration.Sandbox) { require.Equal(t, "world", string(dt)) } - t.Run("conn=netpipe", func(t *testing.T) { - t.Parallel() - do(t, func(t *testing.T, cmd *exec.Cmd) net.Conn { - c1, c2 := net.Pipe() - cmd.Stdin = c1 - cmd.Stdout = c1 - return c2 - }) + do(t, func(t *testing.T, cmd *exec.Cmd) net.Conn { + c1, c2 := net.Pipe() + cmd.Stdin = c1 + cmd.Stdout = c1 + return c2 }) }