Skip to content

Commit 93ec8fc

Browse files
committed
test(worker): stabilize circuit breaker worker timing
1 parent a1c01a7 commit 93ec8fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/WebhookEngine.Worker.Tests/CircuitBreakerWorkerTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ private static async Task SeedEndpointAsync(
119119

120120
private static async Task RunWorkerOnceAsync(CircuitBreakerWorker worker)
121121
{
122-
using var cts = new CancellationTokenSource();
122+
using var cts = new CancellationTokenSource(TimeSpan.FromSeconds(10));
123123
await worker.StartAsync(cts.Token);
124124

125-
await Task.Delay(250);
125+
await Task.Delay(2000);
126126

127127
cts.Cancel();
128128
await worker.StopAsync(CancellationToken.None);

0 commit comments

Comments
 (0)