From e2b18cf9dbcd1f29d4a176232990eef23494698b Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Mon, 27 Dec 2021 14:26:03 +0900 Subject: [PATCH] Make sure dotnet test show test progress --- BTCPayServer.Rating/Providers/HttpClientRequestMaker.cs | 3 +-- BTCPayServer.Tests/docker-entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/BTCPayServer.Rating/Providers/HttpClientRequestMaker.cs b/BTCPayServer.Rating/Providers/HttpClientRequestMaker.cs index 0f0053964..6ead96117 100644 --- a/BTCPayServer.Rating/Providers/HttpClientRequestMaker.cs +++ b/BTCPayServer.Rating/Providers/HttpClientRequestMaker.cs @@ -14,7 +14,6 @@ namespace BTCPayServer.Services.Rates internal class InternalHttpWebRequest : IHttpWebRequest { internal readonly HttpRequestMessage Request; - internal HttpResponseMessage? Response; private string? contentType; public InternalHttpWebRequest(string method, Uri fullUri) @@ -132,7 +131,7 @@ namespace BTCPayServer.Services.Rates await api.ProcessRequestAsync(request, payload); // send the request - var response = request.Response; + HttpResponseMessage response = null; string responseString; using var cancel = new CancellationTokenSource(request.Timeout); try diff --git a/BTCPayServer.Tests/docker-entrypoint.sh b/BTCPayServer.Tests/docker-entrypoint.sh index a73e5f7be..2547c2b4f 100755 --- a/BTCPayServer.Tests/docker-entrypoint.sh +++ b/BTCPayServer.Tests/docker-entrypoint.sh @@ -6,4 +6,4 @@ if [ ! -z "$TEST_FILTERS" ]; then FILTERS="--filter $TEST_FILTERS" fi -dotnet test -c ${CONFIGURATION_NAME} $FILTERS --no-build -v n < /dev/null +dotnet test -c ${CONFIGURATION_NAME} $FILTERS --no-build -v n --logger "console;verbosity=normal" < /dev/null