Skip to content

Commit

Permalink
use another more specific exception
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhathcock committed Jan 8, 2025
1 parent 93a6447 commit 81c1d32
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ public async Task TestGraphQLLayer_BadInput()
public async Task TestCancel()
{
using CancellationTokenSource cts = new();
cts.Cancel();
await cts.CancelAsync();

var ex = await Assert.ThrowsAsync<OperationCanceledException>(
var ex = await Assert.ThrowsAsync<TaskCanceledException>(
async () => await _sut.ActiveUser.Get(cts.Token).ConfigureAwait(false)
);

Expand Down

0 comments on commit 81c1d32

Please sign in to comment.