From bee3b16a2d6402451c3bfd75127eee11a7f124aa Mon Sep 17 00:00:00 2001 From: prong Date: Fri, 8 Sep 2023 14:34:31 +0300 Subject: [PATCH] remove os.exit from test --- generic_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generic_test.go b/generic_test.go index f42d03bd48a..0d66ef9a7b6 100644 --- a/generic_test.go +++ b/generic_test.go @@ -184,6 +184,8 @@ func createReuseContainerInSubprocess(t *testing.T) string { return string(output) } +// TestHelperContainerStarterProcess is a helper function +// to start a container in a subprocess. It's not a real test. func TestHelperContainerStarterProcess(t *testing.T) { if os.Getenv("GO_WANT_HELPER_PROCESS") != "1" { return @@ -214,6 +216,4 @@ func TestHelperContainerStarterProcess(t *testing.T) { defer resp.Body.Close() require.Equal(t, http.StatusOK, resp.StatusCode) - - os.Exit(0) }