mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
test: assert the allocation hold extends past the original quiet deadline
Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
70bbd27638
commit
cbbc9e6efe
1 file changed
+2
-1
@@ -166,8 +166,9 @@ func TestAllocationDelayExtendedByEvidence(t *testing.T) {
|
||||
topo.DeferAllocation(time.Minute)
|
||||
time.Sleep(600 * time.Millisecond)
|
||||
topo.NoteAllocationEvidence()
|
||||
time.Sleep(600 * time.Millisecond)
|
||||
if wait := topo.allocationDelay(); wait <= 0 {
|
||||
t.Fatal("fresh evidence should extend the deferral")
|
||||
t.Fatal("evidence should extend the deferral past the original quiet deadline")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user