Skip to content

Commit

Permalink
remove os.exit from test
Browse files Browse the repository at this point in the history
  • Loading branch information
prongq committed Sep 8, 2023
1 parent 21de67c commit f099a52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generic_test.go
Expand Up @@ -143,6 +143,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
Expand Down Expand Up @@ -173,6 +175,4 @@ func TestHelperContainerStarterProcess(t *testing.T) {
defer resp.Body.Close()

require.Equal(t, http.StatusOK, resp.StatusCode)

os.Exit(0)
}

0 comments on commit f099a52

Please sign in to comment.