diff --git a/internal/ui/progress/counter_test.go b/internal/ui/progress/counter_test.go index 84d1e5a64..49a99f7ee 100644 --- a/internal/ui/progress/counter_test.go +++ b/internal/ui/progress/counter_test.go @@ -22,7 +22,9 @@ func TestCounter(t *testing.T) { ) report := func(value uint64, total uint64, d time.Duration, final bool) { - finalSeen = true + if final { + finalSeen = true + } if value < last { increasing = false }