From e45f1afd515908f712061880245624e2e2f191ab Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Tue, 20 Aug 2019 16:12:18 +0900 Subject: [PATCH] Small rewrite of condition --- BTCPayServer.Tests/BTCPayServerTester.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/BTCPayServer.Tests/BTCPayServerTester.cs b/BTCPayServer.Tests/BTCPayServerTester.cs index 7b58b8fbc..2c4984ac2 100644 --- a/BTCPayServer.Tests/BTCPayServerTester.cs +++ b/BTCPayServer.Tests/BTCPayServerTester.cs @@ -241,10 +241,9 @@ namespace BTCPayServer.Tests while (true) { var resp = await HttpClient.GetAsync("/", cancellationToken).ConfigureAwait(false); - if (resp.StatusCode != HttpStatusCode.OK) - await Task.Delay(10, cancellationToken).ConfigureAwait(false); - else + if (resp.StatusCode == HttpStatusCode.OK) break; + await Task.Delay(10, cancellationToken).ConfigureAwait(false); } }