Skip to content

Commit fb7c558

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 958ee6b commit fb7c558

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
@@ -1686,19 +1686,12 @@ func TestServiceRepairIntegration(t *testing.T) {
16861686
props["fail_fast"] = true
16871687

16881688
Print("When: run repair")
1689-
i, running := repairRunningInterceptor()
1690-
h.Hrt.SetInterceptor(i)
1691-
h.runRepair(ctx, props)
1692-
1693-
Print("When: repair is running")
1694-
chanClosedWithin(t, running, shortWait)
1695-
1696-
Print("When: Scylla returns failures")
16971689
var killRepairCalled int32
16981690
h.Hrt.SetInterceptor(combineInterceptors(
16991691
countInterceptor(&killRepairCalled, isForceTerminateRepairReq),
17001692
repairMockInterceptor(t, repairStatusFailed),
17011693
))
1694+
h.runRepair(ctx, props)
17021695

17031696
Print("Then: repair finish with error")
17041697
h.assertError(longWait)

0 commit comments

Comments
 (0)