We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1c01a7 commit 93ec8fcCopy full SHA for 93ec8fc
tests/WebhookEngine.Worker.Tests/CircuitBreakerWorkerTests.cs
@@ -119,10 +119,10 @@ private static async Task SeedEndpointAsync(
119
120
private static async Task RunWorkerOnceAsync(CircuitBreakerWorker worker)
121
{
122
- using var cts = new CancellationTokenSource();
+ using var cts = new CancellationTokenSource(TimeSpan.FromSeconds(10));
123
await worker.StartAsync(cts.Token);
124
125
- await Task.Delay(250);
+ await Task.Delay(2000);
126
127
cts.Cancel();
128
await worker.StopAsync(CancellationToken.None);
0 commit comments