We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd047fb commit 1eb5e85Copy full SHA for 1eb5e85
test/WebJobs.Script.Tests/FunctionsSyncServiceTests.cs
@@ -81,8 +81,8 @@ public async Task StartAsync_PrimaryHost_Running_SyncsTriggers_AfterTimeout()
81
[Fact]
82
public async Task StartAsync_TokenCancelledBeforeTimeout_DoesNotSyncTriggers()
83
{
84
- var cts = new CancellationTokenSource();
85
- cts.CancelAfter(_testDueTime / 2);
+ using CancellationTokenSource cts = new();
+ cts.Cancel();
86
await _syncService.StartAsync(cts.Token);
87
await Task.Delay(2 * _testDueTime);
88
0 commit comments