Skip to content

Commit

Permalink
Udpate unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
utpilla committed Nov 15, 2023
1 parent abd4132 commit d4299ce
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ public async Task TestInvalidBaggage()
/// Test to make sure every event record has the right dynamic properties.
/// </summary>
[Fact]
public void TestMultipleConcurrentRequests()
public async Task TestMultipleConcurrentRequests()
{
ServicePointManager.DefaultConnectionLimit = int.MaxValue;
using var parentActivity = new Activity("parent").Start();
Expand All @@ -724,13 +724,13 @@ public void TestMultipleConcurrentRequests()
}

// wait up to 10 sec for all requests and suppress exceptions
Task.WhenAll(tasks.Select(t => t.Value).ToArray()).ContinueWith(tt =>
await Task.WhenAll(tasks.Select(t => t.Value).ToArray()).ContinueWith(tt =>
{
foreach (var task in tasks)
{
task.Value.Result?.Dispose();
}
}).Wait();
});

// Examine the result. Make sure we got all successful requests.

Expand Down

0 comments on commit d4299ce

Please sign in to comment.