mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-19 06:54:19 +01:00
make test more reliable
This commit is contained in:
@@ -795,6 +795,7 @@ namespace BTCPayServer.Tests
|
|||||||
{
|
{
|
||||||
listener.ListenAllDerivationSchemes();
|
listener.ListenAllDerivationSchemes();
|
||||||
var replaced = tester.ExplorerNode.SignRawTransaction(tx);
|
var replaced = tester.ExplorerNode.SignRawTransaction(tx);
|
||||||
|
Thread.Sleep(1000); // Make sure the replacement has a different timestamp
|
||||||
var tx2 = tester.ExplorerNode.SendRawTransaction(replaced);
|
var tx2 = tester.ExplorerNode.SendRawTransaction(replaced);
|
||||||
Logs.Tester.LogInformation($"Let's RBF with a payment of {payment2} ({tx2}), waiting for NBXplorer to pick it up");
|
Logs.Tester.LogInformation($"Let's RBF with a payment of {payment2} ({tx2}), waiting for NBXplorer to pick it up");
|
||||||
Assert.Equal(tx2, ((NewTransactionEvent)listener.NextEvent(cts.Token)).TransactionData.TransactionHash);
|
Assert.Equal(tx2, ((NewTransactionEvent)listener.NextEvent(cts.Token)).TransactionData.TransactionHash);
|
||||||
|
|||||||
Reference in New Issue
Block a user