1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-03-13 19:37:35 +01:00

Fix Bolt 3 spec change that broke our test suite (#1719)

We just merged lightningnetwork/lightning-rfc@b201efe in the spec
which added Bolt 3 tests, invalidating one of our tests and failing the build.
This commit is contained in:
Bastien Teinturier 2021-03-05 13:48:31 +01:00 committed by pm47
parent 7d3dca6541
commit 88dd72274c
No known key found for this signature in database
GPG key ID: E434ED292E85643A

View file

@ -424,9 +424,7 @@ class TransactionsSpec extends AnyFunSuite with Logging {
TestSetup(name, dustLimit, CommitmentSpec(htlcs = htlcs, feeratePerKw = feerate_per_kw.toLong, toLocal = MilliSatoshi(to_local_msat.toLong), toRemote = MilliSatoshi(to_remote_msat.toLong)), Satoshi(fee.toLong))
}).toSeq
// simple non-reg test making sure we are not missing tests
assert(tests.size === 15, "there were 15 tests at ec99f893f320e8c88f564c1c8566f3454f0f1f5f")
assert(tests.size === 30, "there were 15 tests at b201efe0546120c14bf154ce5f4e18da7243fe7a") // simple non-reg to make sure we are not missing tests
tests.foreach(test => {
logger.info(s"running BOLT 2 test: '${test.name}'")
val fee = commitTxFee(test.dustLimit, test.spec)