File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -309,6 +309,12 @@ func TestContainerTerminationWithoutReaper(t *testing.T) {
309309}
310310
311311func Test_NewReaper (t * testing.T ) {
312+ config .Reset () // reset the config using the internal method to avoid the sync.Once
313+ tcConfig := config .Read ()
314+ if tcConfig .RyukDisabled {
315+ t .Skip ("Ryuk is disabled, skipping test" )
316+ }
317+
312318 type cases struct {
313319 name string
314320 req ContainerRequest
@@ -588,6 +594,12 @@ func TestReaper_reuseItFromOtherTestProgramUsingDocker(t *testing.T) {
588594// already running for the same session id by returning its container instance
589595// instead.
590596func TestReaper_ReuseRunning (t * testing.T ) {
597+ config .Reset () // reset the config using the internal method to avoid the sync.Once
598+ tcConfig := config .Read ()
599+ if tcConfig .RyukDisabled {
600+ t .Skip ("Ryuk is disabled, skipping test" )
601+ }
602+
591603 const concurrency = 64
592604
593605 timeout , cancel := context .WithTimeout (context .Background (), 5 * time .Minute )
You can’t perform that action at this time.
0 commit comments