Add .ConfigureAwait(false); to the await Task calls (#704)

Add .ConfigureAwait(false); to the await Task calls
This commit is contained in:
Stef Heyenrath authored and GitHub committed 2021-12-24 14:08:43 +01:00
1 parent 1d1ff4a418
commit b5ae087b95
62 files changed
+373 -372

No files matched your search

@@ -1,4 +1,4 @@
using FluentAssertions;
using FluentAssertions;
using System;
using System.Collections.Generic;
using System.IO;
@@ -37,7 +37,7 @@ namespace WireMock.Net.Tests.ResponseBuilders
);
// Act
var response = await new HttpClient().GetStringAsync("http://localhost:" + server.Ports[0] + "/v1/content");
var response = await new HttpClient().GetStringAsync("http://localhost:" + server.Ports[0] + "/v1/content").ConfigureAwait(false);
// Assert
response.Should().Contain("<hello>world</hello>");
@@ -68,7 +68,7 @@ namespace WireMock.Net.Tests.ResponseBuilders
);
// Act
var response = await new HttpClient().GetStringAsync("http://localhost:" + server.Ports[0] + "/v1/content");
var response = await new HttpClient().GetStringAsync("http://localhost:" + server.Ports[0] + "/v1/content").ConfigureAwait(false);
// Assert
response.Should().Contain("<hello>world</hello>");
@@ -99,7 +99,7 @@ namespace WireMock.Net.Tests.ResponseBuilders
);
// Act
var response = await new HttpClient().GetStringAsync("http://localhost:" + server.Ports[0] + "/v1/content");
var response = await new HttpClient().GetStringAsync("http://localhost:" + server.Ports[0] + "/v1/content").ConfigureAwait(false);
// Assert
response.Should().Contain("<hello>world</hello>");