Skip to content

Commit

Permalink
fix merge and use t.Skip instead of return
Browse files Browse the repository at this point in the history
  • Loading branch information
prongq committed Oct 9, 2023
1 parent bee3b16 commit e423a11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions generic_test.go
Expand Up @@ -7,7 +7,7 @@ import (
"io"
"net/http"
"os"
"os/exec"
stdexec "os/exec"
"regexp"
"sync"
"testing"
Expand Down Expand Up @@ -175,7 +175,7 @@ func TestGenericReusableContainerInSubprocess(t *testing.T) {
}

func createReuseContainerInSubprocess(t *testing.T) string {
cmd := exec.Command(os.Args[0], "-test.run=TestHelperContainerStarterProcess")
cmd := stdexec.Command(os.Args[0], "-test.run=TestHelperContainerStarterProcess")
cmd.Env = []string{"GO_WANT_HELPER_PROCESS=1"}

output, err := cmd.CombinedOutput()
Expand All @@ -188,7 +188,7 @@ func createReuseContainerInSubprocess(t *testing.T) string {
// 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
t.Skip("Skipping helper test function. It's not a real test")
}

ctx := context.Background()
Expand Down

0 comments on commit e423a11

Please sign in to comment.