make test more reliable

This commit is contained in:
nicolas.dorier
2018-10-31 16:57:31 +09:00
parent a82f181126
commit bc0acf5701

View File

@@ -795,6 +795,7 @@ namespace BTCPayServer.Tests
{
listener.ListenAllDerivationSchemes();
var replaced = tester.ExplorerNode.SignRawTransaction(tx);
Thread.Sleep(1000); // Make sure the replacement has a different timestamp
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");
Assert.Equal(tx2, ((NewTransactionEvent)listener.NextEvent(cts.Token)).TransactionData.TransactionHash);