Skip to content

Commit

Permalink
Fail correctly if container exist
Browse files Browse the repository at this point in the history
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
  • Loading branch information
kradalby committed Oct 7, 2022
1 parent f3dbfc9 commit 8893100
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion integration_oidc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,13 @@ func (s *IntegrationOIDCTestSuite) tailscaleContainer(
DockerAllowNetworkAdministration,
)
if err != nil {
log.Fatalf("Could not start tailscale container version %s: %s", version, err)
s.FailNow(
fmt.Sprintf(
"Could not start tailscale container version %s: %s",
version,
err,
),
)
}
log.Printf("Created %s container\n", hostname)

Expand Down

0 comments on commit 8893100

Please sign in to comment.