From d04270f262eace2ea4a60d056c6b6f3a6b88dd52 Mon Sep 17 00:00:00 2001 From: Brian Joerger Date: Mon, 18 Apr 2022 17:40:53 -0700 Subject: [PATCH] Fix flaky test - TestChaosUpload (#12043) --- lib/events/complete.go | 2 +- lib/events/filesessions/fileasync_chaos_test.go | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/events/complete.go b/lib/events/complete.go index edd671c438d86..b285ae5c501bc 100644 --- a/lib/events/complete.go +++ b/lib/events/complete.go @@ -67,7 +67,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() diff --git a/lib/events/filesessions/fileasync_chaos_test.go b/lib/events/filesessions/fileasync_chaos_test.go index 95d50e5068cb1..5938812934ff4 100644 --- a/lib/events/filesessions/fileasync_chaos_test.go +++ b/lib/events/filesessions/fileasync_chaos_test.go @@ -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) }()