mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 02:06:23 +00:00
Merge remote-tracking branch 'origin/master' into release-1.36
This commit is contained in:
@@ -1190,17 +1190,20 @@ func (svm *svmTest) createChaos(ctx context.Context, t *testing.T) {
|
||||
|
||||
noFailT := ignoreFailures{} // these create and delete requests are not coordinated with the rest of the test and can fail
|
||||
|
||||
const workers = 10
|
||||
const workers = 5
|
||||
wg.Add(workers)
|
||||
for i := range workers {
|
||||
go func() {
|
||||
defer wg.Done()
|
||||
|
||||
ticker := time.NewTicker(100 * time.Millisecond) // 10 ops/sec
|
||||
defer ticker.Stop()
|
||||
|
||||
for {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return
|
||||
default:
|
||||
case <-ticker.C:
|
||||
}
|
||||
|
||||
_ = svm.createCR(ctx, noFailT, "chaos-cr-"+strconv.Itoa(i), "v1")
|
||||
|
||||
Reference in New Issue
Block a user