Skip to content

Commit 4ffc7d8

Browse files
authored
test: Increase SlowMessageTransport delay to reduce test flakiness (#435)
The delay in ExecuteAsync_WithPerEventTypeProcessingTimeout_UsesOverride was raised from 200ms to 5s to ensure it exceeds the override timeout, minimizing timer-jitter and improving test reliability.
1 parent 908889d commit 4ffc7d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/NetEvolve.Pulse.Tests.Unit/Outbox/OutboxProcessorHostedServiceTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ CancellationToken cancellationToken
424424
public async Task ExecuteAsync_WithPerEventTypeProcessingTimeout_UsesOverride(CancellationToken cancellationToken)
425425
{
426426
using var repository = new InMemoryOutboxRepository();
427-
var transport = new SlowMessageTransport(delay: TimeSpan.FromMilliseconds(200));
427+
var transport = new SlowMessageTransport(delay: TimeSpan.FromSeconds(5)); // Much larger than the override timeout to avoid timer-jitter flakiness
428428
var options = Options.Create(
429429
new OutboxProcessorOptions
430430
{

0 commit comments

Comments
 (0)