TorControlClientTests: Add missing `ConfigureAwait(false)`.
MODIFY
WalletWasabi.Tests/UnitTests/Tor/Control/TorControlClientTests.cs
WalletWasabi.Tests/UnitTests/Tor/Control/TorControlClientTests.cs
@@ -38,7 +38,7 @@ namespace WalletWasabi.Tests.UnitTests.Tor.Control
for (int i = 0; i < ExpectedEventsNo; i++)
{
Logger.LogTrace($"Server: Send async Tor event (#{i}): '650 {AsyncEventContent}'.");
- await toClient.Writer.WriteAsciiAsync($"650 {AsyncEventContent}\r\n", timeoutCts.Token);
+ await toClient.Writer.WriteAsciiAsync($"650 {AsyncEventContent}\r\n", timeoutCts.Token).ConfigureAwait(false);
}
});
@@ -91,20 +91,20 @@ namespace WalletWasabi.Tests.UnitTests.Tor.Control
Task serverTask = Task.Run(async () =>
{
Logger.LogTrace($"Server: Send msg #1 (async) to client: '650 {AsyncEventContent}'.");
- await toClient.Writer.WriteAsciiAsync($"650 {AsyncEventContent}\r\n", timeoutCts.Token);
+ await toClient.Writer.WriteAsciiAsync($"650 {AsyncEventContent}\r\n", timeoutCts.Token).ConfigureAwait(false);
Logger.LogTrace($"Server: Send msg #2 (async) to client: '650 {AsyncEventContent}'.");
- await toClient.Writer.WriteAsciiAsync($"650 {AsyncEventContent}\r\n", timeoutCts.Token);
+ await toClient.Writer.WriteAsciiAsync($"650 {AsyncEventContent}\r\n", timeoutCts.Token).ConfigureAwait(false);
Logger.LogTrace("Server: Wait for TAKEOWNERSHIP command.");
- string command = await toServer.Reader.ReadLineAsync(timeoutCts.Token);
+ string command = await toServer.Reader.ReadLineAsync(timeoutCts.Token).ConfigureAwait(false);
Assert.Equal("TAKEOWNERSHIP", command);
Logger.LogTrace("Server: Send msg #3 (sync) to client in response to TAKEOWNERSHIP command.");
- await toClient.Writer.WriteAsciiAsync($"250 OK\r\n", timeoutCts.Token);
+ await toClient.Writer.WriteAsciiAsync($"250 OK\r\n", timeoutCts.Token).ConfigureAwait(false);
Logger.LogTrace($"Server: Send msg #4 (async) to client: '650 {AsyncEventContent}'.");
- await toClient.Writer.WriteAsciiAsync($"650 {AsyncEventContent}\r\n", timeoutCts.Token);
+ await toClient.Writer.WriteAsciiAsync($"650 {AsyncEventContent}\r\n", timeoutCts.Token).ConfigureAwait(false);
});
Logger.LogTrace("Client: Receive msg #1 (async).");

TorControlClientTests: Add missing `ConfigureAwait(false)`.