From 606b42a6e75fcc2c2bc425f5de64e948bfd7b821 Mon Sep 17 00:00:00 2001 From: Michal Horejsek Date: Thu, 22 Oct 2020 10:04:22 +0200 Subject: [PATCH] Fix flaky TestFailUnpauseAndStops --- Changelog.md | 1 + internal/transfer/progress_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index 07582c42..d2bc6767 100644 --- a/Changelog.md +++ b/Changelog.md @@ -19,6 +19,7 @@ Changelog [format](http://keepachangelog.com/en/1.0.0/) * Fix measurement of uploading attachments during transfer. * GODT-827 Do not spam sentry with bad ID by integration test. * GODT-700 Fix UTF-7 incompatibility. +* GODT-837 Fix flaky TestFailUnpauseAndStops. ### Changed * Bump crypto version to v0.0.0-20200818122824-ed5d25e28db8 diff --git a/internal/transfer/progress_test.go b/internal/transfer/progress_test.go index cdb4e024..e005a1cb 100644 --- a/internal/transfer/progress_test.go +++ b/internal/transfer/progress_test.go @@ -115,7 +115,7 @@ func TestFailUnpauseAndStops(t *testing.T) { r.Nil(t, progress.updateCh) r.True(t, progress.isStopped) r.False(t, progress.IsPaused()) - r.Eventually(t, progress.shouldStop, 2*time.Millisecond, time.Millisecond) + r.Eventually(t, progress.shouldStop, time.Second, 10*time.Millisecond) } func TestStopClosesUpdates(t *testing.T) {