Skip to content

Commit

Permalink
Fix flaky test - TestChaosUpload (#12052)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joerger authored Apr 19, 2022
1 parent 03956d7 commit 4d6877b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion lib/events/complete.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (cfg *UploadCompleterConfig) CheckAndSetDefaults() error {
cfg.Component = teleport.ComponentAuth
}
if cfg.CheckPeriod == 0 {
cfg.CheckPeriod = defaults.LowResPollingPeriod
cfg.CheckPeriod = defaults.AbandonedUploadPollingRate
}
if cfg.Clock == nil {
cfg.Clock = clockwork.NewRealClock()
Expand Down
4 changes: 0 additions & 4 deletions lib/events/filesessions/fileasync_chaos_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,6 @@ func TestChaosUpload(t *testing.T) {
scansCh := make(chan error, parallelStreams)
for i := 0; i < parallelStreams; i++ {
go func() {
if err := uploader.uploadCompleter.CheckUploads(ctx); err != nil {
scansCh <- trace.Wrap(err)
return
}
_, err := uploader.Scan()
scansCh <- trace.Wrap(err)
}()
Expand Down

0 comments on commit 4d6877b

Please sign in to comment.