Skip to content

Commit

Permalink
fix: skip unhealthy (#2717)
Browse files Browse the repository at this point in the history
Pass the right variable to skip unhealthy function in tests, so it
actually functions.
  • Loading branch information
stevenh authored Aug 9, 2024
1 parent 3c326f8 commit fc4b264
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions reaper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ func Test_ReaperReusedIfHealthy(t *testing.T) {
testProvider := newMockReaperProvider(t)
t.Cleanup(testProvider.RestoreReaperState)

SkipIfProviderIsNotHealthy(&testing.T{})
SkipIfProviderIsNotHealthy(t)

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

SkipIfProviderIsNotHealthy(&testing.T{})
SkipIfProviderIsNotHealthy(t)

provider, _ := ProviderDocker.GetProvider()
ctx := context.Background()
Expand Down Expand Up @@ -552,7 +552,7 @@ func TestReaper_reuseItFromOtherTestProgramUsingDocker(t *testing.T) {
reaperInstance = nil
reaperOnce = sync.Once{}

SkipIfProviderIsNotHealthy(&testing.T{})
SkipIfProviderIsNotHealthy(t)

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

0 comments on commit fc4b264

Please sign in to comment.