diff --git a/eclair-rpc-test/src/test/scala/org/bitcoins/eclair/rpc/EclairRpcClientTest.scala b/eclair-rpc-test/src/test/scala/org/bitcoins/eclair/rpc/EclairRpcClientTest.scala index 62b76c0249..0494d515d9 100644 --- a/eclair-rpc-test/src/test/scala/org/bitcoins/eclair/rpc/EclairRpcClientTest.scala +++ b/eclair-rpc-test/src/test/scala/org/bitcoins/eclair/rpc/EclairRpcClientTest.scala @@ -223,9 +223,17 @@ class EclairRpcClientTest extends BitcoinSAsyncTest { info <- client4.getInfo _ = assert(info.nodeId == invoice.nodeId) paymentId <- client1.payInvoice(invoice) + _ <- + EclairRpcTestUtil + .awaitUntilIncomingPaymentStatus[IncomingPaymentStatus.Received]( + client4, + invoice.lnTags.paymentHash.hash, + duration = 1.second) + _ <- EclairRpcTestUtil.awaitUntilPaymentSucceeded(client1, paymentId, duration = 1.second) + received <- client4.audit() relayed <- client2.audit() sent <- client1.audit()