Skip to content

Commit 248026c

Browse files
committed
dotnet format CA2007
intentionally .ConfigureAwait(true) as required by xUnit
1 parent 27c99bd commit 248026c

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

test/IntegrationTests/AspNetTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public async Task SubmitsTraces(AppPoolMode appPoolMode, Gac useGac)
7777
#pragma warning disable CA2007 // Do not directly await a Task. https://github.com/dotnet/roslyn-analyzers/issues/7185
7878
await using var container = await IISContainerTestHelper.StartContainerAsync(imageName, webPort, environmentVariables, Output);
7979
#pragma warning restore CA2007 // Do not directly await a Task. https://github.com/dotnet/roslyn-analyzers/issues/7185
80-
await CallTestApplicationEndpoint(webPort);
80+
await CallTestApplicationEndpoint(webPort).ConfigureAwait(true);
8181

8282
collector.AssertExpectations();
8383
}

test/IntegrationTests/Log4NetBridgeTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public async Task SubmitLogs_ThroughILoggerBridge_WhenLog4NetIsUsedAsILoggerAppe
125125
AssertStandardOutputExpectations(standardOutput);
126126

127127
// wait for fixed amount of time for logs to be collected before asserting
128-
await Task.Delay(TimeSpan.FromSeconds(5));
128+
await Task.Delay(TimeSpan.FromSeconds(5)).ConfigureAwait(true);
129129

130130
collector.AssertCollected();
131131
}

test/IntegrationTests/LogTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public async Task EnableLogsWithCLRAndHostingStartup()
9494
RunTestApplication();
9595

9696
// wait for fixed amount of time for logs to be collected before asserting
97-
await Task.Delay(TimeSpan.FromSeconds(10));
97+
await Task.Delay(TimeSpan.FromSeconds(10)).ConfigureAwait(true);
9898

9999
collector.AssertCollected();
100100
}

test/IntegrationTests/ModuleTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public async Task Default()
2929
$"{nameof(ModuleTests)}.{nameof(Default)}.NetCore";
3030
#endif
3131

32-
await RunTests(verifyTestName);
32+
await RunTests(verifyTestName).ConfigureAwait(true);
3333
}
3434

3535
[Fact]
@@ -49,7 +49,7 @@ public async Task DefaultNoExporters()
4949
$"{nameof(ModuleTests)}.{nameof(DefaultNoExporters)}.NetCore";
5050
#endif
5151

52-
await RunTests(verifyTestName);
52+
await RunTests(verifyTestName).ConfigureAwait(true);
5353
}
5454

5555
[Fact]
@@ -69,7 +69,7 @@ public async Task Minimal()
6969
$"{nameof(ModuleTests)}.{nameof(Minimal)}.NetCore";
7070
#endif
7171

72-
await RunTests(verifyTestName);
72+
await RunTests(verifyTestName).ConfigureAwait(true);
7373
}
7474

7575
private async Task RunTests(string verifyName)

test/IntegrationTests/NLogBridgeTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public async Task SubmitLogs_ThroughILoggerBridge_WhenNLogIsUsedAsILoggerProvide
136136
AssertStandardOutputExpectations(standardOutput, expectWrapperTypeMessage: false);
137137

138138
// wait for fixed amount of time for logs to be collected before asserting
139-
await Task.Delay(TimeSpan.FromSeconds(5));
139+
await Task.Delay(TimeSpan.FromSeconds(5)).ConfigureAwait(true);
140140

141141
collector.AssertCollected();
142142
}

test/IntegrationTests/WcfDotNetTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public WcfDotNetTests(ITestOutputHelper output)
2020
public async Task SubmitTraces(string clientPackageVersion)
2121
{
2222
EnableBytecodeInstrumentation();
23-
await SubmitsTracesInternal(clientPackageVersion);
23+
await SubmitsTracesInternal(clientPackageVersion).ConfigureAwait(true);
2424
}
2525
}
2626

test/IntegrationTests/WorkerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public async Task SubmitsLogsWithoutDuplicates()
3232
RunTestApplication();
3333

3434
// wait for fixed amount of time for logs to be collected before asserting
35-
await Task.Delay(TimeSpan.FromSeconds(10));
35+
await Task.Delay(TimeSpan.FromSeconds(10)).ConfigureAwait(true);
3636

3737
collector.AssertCollected();
3838
}

0 commit comments

Comments
 (0)