diff --git a/tests/Repositories.Oracle.Tests/RepositoriesTests.cs b/tests/Repositories.Oracle.Tests/RepositoriesTests.cs index 5afe2b89..44fab5d0 100644 --- a/tests/Repositories.Oracle.Tests/RepositoriesTests.cs +++ b/tests/Repositories.Oracle.Tests/RepositoriesTests.cs @@ -20,9 +20,9 @@ public async Task CancellationTokenSource_Cancel() { using var cts = new CancellationTokenSource(); - cts.Cancel(); + await cts.CancelAsync(); - await Assert.ThrowsAnyAsync(() => Db.Address.FindAllAsync(cts.Token)); + await Assert.ThrowsAnyAsync(() => Db.Address.FindAllAsync(cts.Token)); } [Fact]