Skip to content

Commit

Permalink
Actually do what the test name suggests
Browse files Browse the repository at this point in the history
  • Loading branch information
MihaZupan committed Jul 3, 2024
1 parent 5aeb996 commit 38d47dd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,9 @@ public async Task SendAsync_Cancel_CancellationTokenPropagates()
() => client.GetAsync(TestAsync, InvalidUri, cancellationToken: cts.Token));

// .NET Framework has bug where it doesn't propagate token information.
Assert.True(oce.CancellationToken.IsCancellationRequested);
#if !NETFRAMEWORK
Assert.Equal(cts.Token, oce.CancellationToken);
#endif
}

public static IEnumerable<object[]> PostAsync_Cancel_CancellationTokenPassedToContent_MemberData()
Expand Down

0 comments on commit 38d47dd

Please sign in to comment.