Skip to content

Commit 92c3f85

Browse files
authored
chore: sleep before next iteration (#446)
* chore: sleep before next iteration * lint: fix
1 parent 0830065 commit 92c3f85

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

config/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ checks:
329329
nodes-sync-wait: 1m
330330
upload-timeout: 1m
331331
download-timeout: 1m
332+
iteration-wait: 5m
332333
duration: 15m
333334
timeout: 30m
334335
type: smoke

config/local.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ checks:
281281
nodes-sync-wait: 1m
282282
upload-timeout: 1m
283283
download-timeout: 1m
284+
iteration-wait: 5m
284285
timeout: 5m
285286
type: smoke
286287
ci-soc:

pkg/check/smoke/smoke.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ type Options struct {
3636
MaxUseBatch time.Duration
3737
MaxStorageRadius uint8
3838
StorageRadiusCheckWait time.Duration
39+
IterationWait time.Duration
3940
}
4041

4142
// NewDefaultOptions returns new default options
@@ -54,6 +55,7 @@ func NewDefaultOptions() Options {
5455
MaxUseBatch: 12 * time.Hour,
5556
MaxStorageRadius: 2,
5657
StorageRadiusCheckWait: 5 * time.Minute,
58+
IterationWait: 5 * time.Minute,
5759
}
5860
}
5961

@@ -83,6 +85,8 @@ func (c *Check) Run(ctx context.Context, cluster orchestration.Cluster, opts int
8385

8486
c.logger.Info("random seed: ", o.RndSeed)
8587
c.logger.Info("content size: ", o.ContentSize)
88+
c.logger.Info("upload timeout: ", o.UploadTimeout)
89+
c.logger.Info("download timeout: ", o.DownloadTimeout)
8690

8791
rnd := random.PseudoGenerator(o.RndSeed)
8892

@@ -237,6 +241,8 @@ func (c *Check) Run(ctx context.Context, cluster orchestration.Cluster, opts int
237241
c.logger.Infof("data mismatch: found %d different bytes, ~%.2f%%", diff, float64(diff)/float64(txLen)*100)
238242
}
239243
rxCancel()
244+
245+
time.Sleep(o.IterationWait)
240246
}
241247

242248
return nil

0 commit comments

Comments
 (0)