mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
tweak
This commit is contained in:
parent
038b90d475
commit
bee19638f1
@ -1628,7 +1628,7 @@ func (e *WorkloadExecutor) runBarrierOp(opIndex int, op *barrierOp) error {
|
|||||||
|
|
||||||
func (e *WorkloadExecutor) runSleepOp(op *sleepOp) {
|
func (e *WorkloadExecutor) runSleepOp(op *sleepOp) {
|
||||||
select {
|
select {
|
||||||
case <-(e.tCtx).Done():
|
case <-e.tCtx.Done():
|
||||||
case <-time.After(op.Duration.Duration):
|
case <-time.After(op.Duration.Duration):
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1825,7 +1825,7 @@ func (e *WorkloadExecutor) runChurnOp(opIndex int, op *churnOp) error {
|
|||||||
churnFns[i]("")
|
churnFns[i]("")
|
||||||
}
|
}
|
||||||
count++
|
count++
|
||||||
case <-(e.tCtx).Done():
|
case <-e.tCtx.Done():
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1849,7 +1849,7 @@ func (e *WorkloadExecutor) runChurnOp(opIndex int, op *churnOp) error {
|
|||||||
retVals[i][count%op.Number] = churnFns[i](retVals[i][count%op.Number])
|
retVals[i][count%op.Number] = churnFns[i](retVals[i][count%op.Number])
|
||||||
}
|
}
|
||||||
count++
|
count++
|
||||||
case <-(e.tCtx).Done():
|
case <-e.tCtx.Done():
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user