Skip to content

Commit

Permalink
chore: skip reaper test when it's disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Mar 15, 2023
1 parent 068974c commit bfaafe7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,11 @@ func TestContainerStartsWithoutTheReaper(t *testing.T) {
}

func TestContainerStartsWithTheReaper(t *testing.T) {
tcConfig := ReadConfig()
if tcConfig.RyukDisabled {
t.Skip("Ryuk is disabled, skipping test")
}

ctx := context.Background()
client, err := testcontainersdocker.NewClient(ctx)
if err != nil {
Expand Down

0 comments on commit bfaafe7

Please sign in to comment.