diff --git a/internal/uploads/worker_duration_test.go b/internal/uploads/worker_duration_test.go index cae4b18..8d6ede6 100644 --- a/internal/uploads/worker_duration_test.go +++ b/internal/uploads/worker_duration_test.go @@ -104,6 +104,8 @@ func TestWorkerDuration_TheShortfallNoteIsPinnedAtEightyPercentAndTwoMinutes(t * noted bool }{ {"79 percent of an hour", 60 * time.Minute, 0.79 * 3600, true}, + {"exactly 80 percent of an hour", 60 * time.Minute, 2880, false}, + {"one second under 80 percent of an hour", 60 * time.Minute, 2879, true}, {"81 percent of an hour", 60 * time.Minute, 0.81 * 3600, false}, {"exactly two minutes short and under 80 percent", 6 * time.Minute, 4 * 60, false}, {"two minutes and a second short and under 80 percent", 6 * time.Minute, 4*60 - 1, true},