mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 06:46:34 +00:00
progress/counter: Fix test for final report call
This commit is contained in:
parent
e2b0072441
commit
313ad0e32f
@ -22,7 +22,9 @@ func TestCounter(t *testing.T) {
|
|||||||
)
|
)
|
||||||
|
|
||||||
report := func(value uint64, total uint64, d time.Duration, final bool) {
|
report := func(value uint64, total uint64, d time.Duration, final bool) {
|
||||||
|
if final {
|
||||||
finalSeen = true
|
finalSeen = true
|
||||||
|
}
|
||||||
if value < last {
|
if value < last {
|
||||||
increasing = false
|
increasing = false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user