Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public async Task ExecuteAsync_EnsurePrimaryContextFlows()
}

[Fact]
public async void ExecuteAsync_EnsureHedgedTasksCancelled_Ok()
public async Task ExecuteAsync_EnsureHedgedTasksCancelled_Ok()
{
// arrange
_testOutput.WriteLine("ExecuteAsync_EnsureHedgedTasksCancelled_Ok executing...");
Expand Down Expand Up @@ -658,7 +658,7 @@ ValueTask<Outcome<string>> BackgroundWork(ResilienceContext resilienceContext)
}

[Fact]
public async void ExecuteAsync_ZeroHedgingDelay_EnsureAllTasksSpawnedAtOnce()
public async Task ExecuteAsync_ZeroHedgingDelay_EnsureAllTasksSpawnedAtOnce()
{
// arrange
int executions = 0;
Expand Down
4 changes: 2 additions & 2 deletions test/Polly.Core.Tests/Retry/RetryResilienceStrategyTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public override ITimer CreateTimer(TimerCallback callback, object? state, TimeSp
}

[Fact]
public async void OnRetry_EnsureCorrectArguments()
public async Task OnRetry_EnsureCorrectArguments()
{
var attempts = new List<int>();
var delays = new List<TimeSpan>();
Expand Down Expand Up @@ -244,7 +244,7 @@ public async void OnRetry_EnsureCorrectArguments()
}

[Fact]
public async void MaxDelay_EnsureRespected()
public async Task MaxDelay_EnsureRespected()
{
var delays = new List<TimeSpan>();
_options.OnRetry = args =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public partial class IssuesTests
/// Additionally, it also shows how to disable rate limiting for admin users.
/// </summary>
[Fact]
public async void PartitionedRateLimiter_EnsureUserLimited_1365()
public async Task PartitionedRateLimiter_EnsureUserLimited_1365()
{
// arrange
var userKey = new ResiliencePropertyKey<string>("user");
Expand Down