1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-02-23 14:40:34 +01:00

Fix dual funding flaky test (#2392)

Nodes also asynchronously republish funding txs after a restart, but we
want to test the closing behavior so we ignore these events.
This commit is contained in:
Bastien Teinturier 2022-08-23 10:37:23 +02:00 committed by GitHub
parent a4faa908a1
commit fb6eb485c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -678,9 +678,7 @@ class WaitForDualFundingConfirmedStateSpec extends TestKitBaseClass with Fixture
bobData.previousFundingTxs.foreach(f => bob2blockchain.expectMsgType[WatchFundingConfirmed].txId == f.commitments.fundingTxId)
awaitCond(bob2.stateName == OFFLINE)
alice2.underlying.system.eventStream.subscribe(aliceListener.ref, classOf[TransactionPublished])
alice2.underlying.system.eventStream.subscribe(aliceListener.ref, classOf[TransactionConfirmed])
bob2.underlying.system.eventStream.subscribe(bobListener.ref, classOf[TransactionPublished])
bob2.underlying.system.eventStream.subscribe(bobListener.ref, classOf[TransactionConfirmed])
(alice2, bob2)