Skip to content

Commit

Permalink
set slower poll interval on slow machine
Browse files Browse the repository at this point in the history
  • Loading branch information
JssDWt committed Sep 26, 2024
1 parent 0c7a54e commit 139d031
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions itest/tests/test_redeem_rbf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
test_name,
)
from decimal import Decimal
from pyln.testing.utils import wait_for
from pyln.testing.utils import wait_for, SLOW_MACHINE
from fixtures import whatthefee, swapd_factory, postgres_factory
import hashlib
import os
Expand All @@ -25,9 +25,13 @@ def test_redeem_rbf_close_to_deadline(node_factory, swapd_factory):

# slow down the redeem poll interval, so the replacement transaction is not
# mined during the creation of new blocks.
interval = "4"
if SLOW_MACHINE:
interval = "20"

swapper = swapd_factory.get_swapd(
options={
"redeem-poll-interval-seconds": "4",
"redeem-poll-interval-seconds": interval,
}
)
swapper.lightning_node.openchannel(user, 1000000)
Expand Down

0 comments on commit 139d031

Please sign in to comment.