1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-02-24 06:47: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:
Bastien Teinturier 2019-12-09 14:12:27 +01:00 committed by GitHub
parent be7429fad4
commit b6511ad904
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -499,8 +499,6 @@ class MultiPartPaymentLifecycleSpec extends TestKit(ActorSystem("test")) with fi
assert(remaining === 0.msat, fuzzParams)
assert(payments.nonEmpty, 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)
}
}