mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-06 23:04:26 +01:00
make test less slimfy
This commit is contained in:
@@ -271,7 +271,20 @@ namespace BTCPayServer.Tests
|
||||
{
|
||||
await cashCow.SendToAddressAsync(address, value);
|
||||
});
|
||||
return (await btcPayWallet.GetUnspentCoins(DerivationScheme)).First(c => c.ScriptPubKey == address.ScriptPubKey).Coin;
|
||||
int i = 0;
|
||||
while (i <30)
|
||||
{
|
||||
var result = (await btcPayWallet.GetUnspentCoins(DerivationScheme))
|
||||
.FirstOrDefault(c => c.ScriptPubKey == address.ScriptPubKey)?.Coin;
|
||||
if (result != null)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
await Task.Delay(1000);
|
||||
i++;
|
||||
}
|
||||
Assert.False(true);
|
||||
}
|
||||
|
||||
public async Task<BitcoinAddress> GetNewAddress(BTCPayNetwork network)
|
||||
|
||||
Reference in New Issue
Block a user