Skip to content

Commit fc4b264

Browse files
authored
fix: skip unhealthy (#2717)
Pass the right variable to skip unhealthy function in tests, so it actually functions.
1 parent 3c326f8 commit fc4b264

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reaper_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ func Test_ReaperReusedIfHealthy(t *testing.T) {
467467
testProvider := newMockReaperProvider(t)
468468
t.Cleanup(testProvider.RestoreReaperState)
469469

470-
SkipIfProviderIsNotHealthy(&testing.T{})
470+
SkipIfProviderIsNotHealthy(t)
471471

472472
ctx := context.Background()
473473
// As other integration tests run with the (shared) Reaper as well, re-use the instance to not interrupt other tests
@@ -507,7 +507,7 @@ func Test_RecreateReaperIfTerminated(t *testing.T) {
507507
mockProvider := newMockReaperProvider(t)
508508
t.Cleanup(mockProvider.RestoreReaperState)
509509

510-
SkipIfProviderIsNotHealthy(&testing.T{})
510+
SkipIfProviderIsNotHealthy(t)
511511

512512
provider, _ := ProviderDocker.GetProvider()
513513
ctx := context.Background()
@@ -552,7 +552,7 @@ func TestReaper_reuseItFromOtherTestProgramUsingDocker(t *testing.T) {
552552
reaperInstance = nil
553553
reaperOnce = sync.Once{}
554554

555-
SkipIfProviderIsNotHealthy(&testing.T{})
555+
SkipIfProviderIsNotHealthy(t)
556556

557557
ctx := context.Background()
558558
// As other integration tests run with the (shared) Reaper as well, re-use the instance to not interrupt other tests

0 commit comments

Comments
 (0)