Skip to content

Commit f32e0b6

Browse files
Fix flaky OfferPaymentSpec (#3164)
1 parent e8ec148 commit f32e0b6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

eclair-core/src/test/scala/fr/acinq/eclair/integration/basic/payment/OfferPaymentSpec.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ class OfferPaymentSpec extends FixtureSpec with IntegrationPatience {
8383
val f = ThreeNodesFixture(aliceParams, bobParams, carolParams, testData.name)
8484
import f._
8585

86-
alice.watcher.setAutoPilot(watcherAutopilot(knownFundingTxs(alice, bob)))
86+
alice.watcher.setAutoPilot(watcherAutopilot(knownFundingTxs(alice, bob, carol)))
8787
bob.watcher.setAutoPilot(watcherAutopilot(knownFundingTxs(alice, bob, carol)))
88-
carol.watcher.setAutoPilot(watcherAutopilot(knownFundingTxs(bob, carol)))
88+
carol.watcher.setAutoPilot(watcherAutopilot(knownFundingTxs(alice, bob, carol)))
8989

9090
connect(alice, bob)
9191
connect(bob, carol)
@@ -114,6 +114,7 @@ class OfferPaymentSpec extends FixtureSpec with IntegrationPatience {
114114

115115
eventually {
116116
assert(getRouterData(alice).channels.size == 3 || testData.tags.contains(PrivateChannels))
117+
assert(getRouterData(carol).graphWithBalances.graph.getEdgesBetween(alice.nodeId, bob.nodeId).nonEmpty || testData.tags.contains(PrivateChannels))
117118
}
118119
}
119120

0 commit comments

Comments
 (0)