mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-19 06:54:19 +01:00
Make CanUseCoinSelection less flaky
This commit is contained in:
@@ -579,9 +579,10 @@ namespace BTCPayServer.Tests
|
|||||||
var x = store.GetSupportedPaymentMethods(s.Server.NetworkProvider)
|
var x = store.GetSupportedPaymentMethods(s.Server.NetworkProvider)
|
||||||
.OfType<DerivationSchemeSettings>()
|
.OfType<DerivationSchemeSettings>()
|
||||||
.Single(settings => settings.PaymentId.CryptoCode == walletId.CryptoCode);
|
.Single(settings => settings.PaymentId.CryptoCode == walletId.CryptoCode);
|
||||||
|
var wallet = s.Server.PayTester.GetService<BTCPayWalletProvider>().GetWallet(walletId.CryptoCode);
|
||||||
|
wallet.InvalidateCache(x.AccountDerivation);
|
||||||
Assert.Contains(
|
Assert.Contains(
|
||||||
await s.Server.PayTester.GetService<BTCPayWalletProvider>().GetWallet(walletId.CryptoCode)
|
await wallet.GetUnspentCoins(x.AccountDerivation),
|
||||||
.GetUnspentCoins(x.AccountDerivation),
|
|
||||||
coin => coin.OutPoint == spentOutpoint);
|
coin => coin.OutPoint == spentOutpoint);
|
||||||
});
|
});
|
||||||
await s.Server.ExplorerNode.GenerateAsync(1);
|
await s.Server.ExplorerNode.GenerateAsync(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user