Skip to content

Commit 70e397b

Browse files
fix(repair_test): remove race from when_fail_fast_is_enabled
Mixing real and mocked repair jobs could result in spilling them to other tests.
1 parent 9e57ecf commit 70e397b

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

pkg/service/repair/service_repair_integration_test.go

+1-8
Original file line numberDiff line numberDiff line change
@@ -1681,19 +1681,12 @@ func TestServiceRepairIntegration(t *testing.T) {
16811681
props["fail_fast"] = true
16821682

16831683
Print("When: run repair")
1684-
i, running := repairRunningInterceptor()
1685-
h.Hrt.SetInterceptor(i)
1686-
h.runRepair(ctx, props)
1687-
1688-
Print("When: repair is running")
1689-
chanClosedWithin(t, running, shortWait)
1690-
1691-
Print("When: Scylla returns failures")
16921684
var killRepairCalled int32
16931685
h.Hrt.SetInterceptor(combineInterceptors(
16941686
countInterceptor(&killRepairCalled, isForceTerminateRepairReq),
16951687
repairMockInterceptor(t, repairStatusFailed),
16961688
))
1689+
h.runRepair(ctx, props)
16971690

16981691
Print("Then: repair finish with error")
16991692
h.assertError(longWait)

0 commit comments

Comments
 (0)