Browse Source

reset heap

pull/7402/head
chrislu 1 month ago
parent
commit
2d343c72cf
  1. 3
      weed/filer/filer_deletion_test.go

3
weed/filer/filer_deletion_test.go

@ -71,9 +71,8 @@ func TestDeletionRetryQueue_ExponentialBackoff(t *testing.T) {
t.Errorf("Expected RetryCount %d, got %d", i+1, item.RetryCount)
}
// Remove from queue for next iteration
// Reset the heap for the next isolated test iteration
queue.lock.Lock()
delete(queue.itemIndex, item.FileId)
queue.heap = retryHeap{}
queue.lock.Unlock()
}

Loading…
Cancel
Save