mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
Small rewrite of condition
This commit is contained in:
parent
288dc9b626
commit
e45f1afd51
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user