Skip to content

Commit bee1963

Browse files
committed
tweak
1 parent 038b90d commit bee1963

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/integration/scheduler_perf/scheduler_perf.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1628,7 +1628,7 @@ func (e *WorkloadExecutor) runBarrierOp(opIndex int, op *barrierOp) error {
16281628

16291629
func (e *WorkloadExecutor) runSleepOp(op *sleepOp) {
16301630
select {
1631-
case <-(e.tCtx).Done():
1631+
case <-e.tCtx.Done():
16321632
case <-time.After(op.Duration.Duration):
16331633
}
16341634
}
@@ -1825,7 +1825,7 @@ func (e *WorkloadExecutor) runChurnOp(opIndex int, op *churnOp) error {
18251825
churnFns[i]("")
18261826
}
18271827
count++
1828-
case <-(e.tCtx).Done():
1828+
case <-e.tCtx.Done():
18291829
return
18301830
}
18311831
}
@@ -1849,7 +1849,7 @@ func (e *WorkloadExecutor) runChurnOp(opIndex int, op *churnOp) error {
18491849
retVals[i][count%op.Number] = churnFns[i](retVals[i][count%op.Number])
18501850
}
18511851
count++
1852-
case <-(e.tCtx).Done():
1852+
case <-e.tCtx.Done():
18531853
return
18541854
}
18551855
}

0 commit comments

Comments
 (0)