mirror of
https://github.com/ACINQ/eclair.git
synced 2025-02-24 14:50:46 +01:00
Fix MPP flaky test (#1243)
We can't guarantee with the current algorithm that the last HTLC won't be a small one (the leftovers). If we see that happen in real scenario, we'll need to add heuristics to avoid it.
This commit is contained in:
parent
be7429fad4
commit
b6511ad904
1 changed files with 0 additions and 2 deletions
|
@ -499,8 +499,6 @@ class MultiPartPaymentLifecycleSpec extends TestKit(ActorSystem("test")) with fi
|
||||||
assert(remaining === 0.msat, fuzzParams)
|
assert(remaining === 0.msat, fuzzParams)
|
||||||
assert(payments.nonEmpty, fuzzParams)
|
assert(payments.nonEmpty, fuzzParams)
|
||||||
assert(payments.map(_.finalPayload.amount).sum === toSend, fuzzParams)
|
assert(payments.map(_.finalPayload.amount).sum === toSend, fuzzParams)
|
||||||
// Verify that we're not generating tiny HTLCs.
|
|
||||||
assert(payments.forall(_.finalPayload.amount > 50.msat), fuzzParams)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue