From bc0acf5701c2b64d9f0dbcc35db722e063128ed1 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Wed, 31 Oct 2018 16:57:31 +0900 Subject: [PATCH] make test more reliable --- BTCPayServer.Tests/UnitTest1.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/BTCPayServer.Tests/UnitTest1.cs b/BTCPayServer.Tests/UnitTest1.cs index 963dc7060..2985de2bf 100644 --- a/BTCPayServer.Tests/UnitTest1.cs +++ b/BTCPayServer.Tests/UnitTest1.cs @@ -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);