forked from TrueCloudLab/restic
progress/counter: Fix test for final report call
This commit is contained in:
parent
e2b0072441
commit
313ad0e32f
1 changed files with 3 additions and 1 deletions
|
@ -22,7 +22,9 @@ func TestCounter(t *testing.T) {
|
|||
)
|
||||
|
||||
report := func(value uint64, total uint64, d time.Duration, final bool) {
|
||||
if final {
|
||||
finalSeen = true
|
||||
}
|
||||
if value < last {
|
||||
increasing = false
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue