Skip to content

Commit

Permalink
update oracle task canceled test
Browse files Browse the repository at this point in the history
  • Loading branch information
phnx47 committed Dec 25, 2024
1 parent 3f3ee24 commit 3cce5c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Repositories.Oracle.Tests/RepositoriesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public async Task CancellationTokenSource_Cancel()
{
using var cts = new CancellationTokenSource();

cts.Cancel();
await cts.CancelAsync();

await Assert.ThrowsAnyAsync<OracleException>(() => Db.Address.FindAllAsync(cts.Token));
await Assert.ThrowsAnyAsync<TaskCanceledException>(() => Db.Address.FindAllAsync(cts.Token));
}

[Fact]
Expand Down

0 comments on commit 3cce5c4

Please sign in to comment.