Skip to content

Commit 6dd9f76

Browse files
authored
Add more tolerance in tests (#3199)
DER encoding size can vary by +- 3 bytes, not +- 2.
1 parent 3b69013 commit 6dd9f76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eclair-core/src/test/scala/fr/acinq/eclair/transactions/TransactionsSpec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ class TransactionsSpec extends AnyFunSuite with Logging {
152152
case _: SimpleTaprootChannelCommitmentFormat => assert(actual == expected)
153153
case _: AnchorOutputsCommitmentFormat =>
154154
// ECDSA signatures are der-encoded, which creates some variability in signature size compared to the baseline.
155-
assert(actual <= expected + 2)
156-
assert(actual >= expected - 2)
155+
assert(actual <= expected + 3)
156+
assert(actual >= expected - 3)
157157
}
158158
}
159159

0 commit comments

Comments
 (0)