Skip to content

Commit a5bd060

Browse files
GeorgeTsagkRoasbeef
authored andcommitted
tapchannel: allow greater rate range in unit conversion rapid test
We slightly bump the rapid test range for the asset rate, in order to allow for 1 asset unit to evaluate to much less than 1msat. This exposes some of the rounding errors causing errors in the rapid test (it fails if you run it on this commit).
1 parent f0b41a2 commit a5bd060

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tapchannel/aux_traffic_shaper_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func TestUnitConversionToleranceRapid(t *testing.T) {
7474
Draw(t, "invoiceAmtUnits")
7575
numHTLCs := rapid.Uint64Range(1, 16).
7676
Draw(t, "numHTLCs")
77-
coefficient := rapid.Uint64Range(1, 20_000_000_000).
77+
coefficient := rapid.Uint64Range(1, 300_000_000_000).
7878
Draw(t, "coefficient")
7979

8080
rate := rfqmath.BigIntFixedPoint{

0 commit comments

Comments
 (0)