Skip to content

Commit be69f32

Browse files
author
MPCoreDeveloper
committed
macos test fix (bigger margin)
1 parent 9624fd5 commit be69f32

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/SharpCoreDB.Tests/BlockRegistryBatchingTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ public async Task BlockRegistry_PeriodicTimer_FlushesWithinInterval()
163163
}
164164

165165
// Wait for periodic flush (Phase 3: 500ms interval)
166-
// Timer starts when BlockRegistry is created, so first tick could be anywhere from 0-500ms
167-
// ✅ OPTIMIZED: Reduced from 1200ms to 600ms - one timer interval is sufficient
168-
// (worst case: writes happen just after a tick, next tick at +500ms)
169-
await Task.Delay(600);
166+
// Timer starts when BlockRegistry is created, so first tick could be anywhere from 0-500ms.
167+
// On slow CI runners (macOS), flush I/O + scheduling jitter can add significant delay,
168+
// so wait for at least 3 full intervals to eliminate flakiness.
169+
await Task.Delay(1600);
170170

171171
// Assert - Periodic timer should have flushed
172172
var finalMetrics = registry.GetMetrics();

0 commit comments

Comments
 (0)