Skip to content

Commit 53215cf

Browse files
committed
Fixed failing integration tests
1 parent 43a486e commit 53215cf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

eclair-core/src/test/scala/fr/acinq/eclair/integration/ChannelIntegrationSpec.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,8 @@ class StandardChannelIntegrationSpec extends ChannelIntegrationSpec {
594594
val closingTx = sender.expectMsgType[Transaction]
595595
assert(closingTx.txOut.map(_.publicKeyScript).toSet == Set(finalPubKeyScriptC, finalPubKeyScriptF))
596596

597+
// generate enough blocks so the router will know the channel has been closed and not spliced
598+
generateBlocks(12)
597599
awaitAnnouncements(1)
598600
}
599601

@@ -645,6 +647,9 @@ class StandardChannelIntegrationSpec extends ChannelIntegrationSpec {
645647
generateBlocks(2)
646648
// and we wait for C's channel to close
647649
awaitCond(stateListenerC.expectMsgType[ChannelStateChanged](max = 60 seconds).currentState == CLOSED, max = 60 seconds)
650+
651+
// generate enough blocks so the router will know the channel has been closed and not spliced
652+
generateBlocks(12)
648653
awaitAnnouncements(1)
649654
}
650655

0 commit comments

Comments
 (0)