mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-15 19:24:31 +01:00
Fix test CanScheduleBackgroundTasks
This commit is contained in:
@@ -1775,6 +1775,8 @@ donation:
|
||||
|
||||
Assert.False(jobExecuted);
|
||||
Assert.Equal(0, client.GetExecutingCount());
|
||||
|
||||
await Assert.ThrowsAnyAsync<OperationCanceledException>(async () => await processing);
|
||||
Assert.True(processing.IsCanceled);
|
||||
Assert.True(client.WaitAllRunning(default).Wait(100));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user