From 313ad0e32fcb7d85ed1a380afd027e7f42223638 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sun, 6 Dec 2020 00:18:50 +0100 Subject: [PATCH] progress/counter: Fix test for final report call --- internal/ui/progress/counter_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }