Small rewrite of condition

This commit is contained in:
nicolas.dorier 2019-08-20 16:12:18 +09:00
parent 288dc9b626
commit e45f1afd51
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -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);
}
}