Skip to content

Commit cb46239

Browse files
committed
ci: Mark some tests as rerun
1 parent 6dca1c7 commit cb46239

File tree

6 files changed

+5
-1
lines changed

6 files changed

+5
-1
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ dev = [
3030
"pytest-timeout>=2.4.0",
3131
"flake8>=7.0",
3232
"pytest-custom-exit-code==0.3.0",
33-
"flaky>=3.7.0",
3433
"requests>=2.32.0",
3534
"flask-socketio>=5",
3635
"tqdm",

tests/test_coinmoves.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,7 @@ def test_coinmoves_unilateral_htlc_before_included(node_factory, bitcoind):
681681
check_balances(l1, l2, fundchannel['channel_id'], 0)
682682

683683

684+
@pytest.mark.flaky(reruns=5)
684685
@pytest.mark.openchannel('v1')
685686
@pytest.mark.openchannel('v2')
686687
@unittest.skipIf(TEST_NETWORK != 'regtest', "Amounts are for regtest.")

tests/test_invoices.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,7 @@ def test_invoices_wait_db_migration(node_factory, bitcoind):
927927

928928
@unittest.skipIf(os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3', "This test is based on a sqlite3 snapshot")
929929
@unittest.skipIf(TEST_NETWORK != 'regtest', "The DB migration is network specific due to the chain var.")
930+
@pytest.mark.flaky(reruns=5)
930931
def test_invoice_botched_migration(node_factory, chainparams):
931932
"""Test for grubles' case, where they ran successfully with the wrong var: they have *both* last_invoice_created_index *and *last_invoices_created_index* (this can happen if invoice id 1 was deleted, so they didn't die on invoice creation):
932933
Error executing statement: wallet/db.c:1684: UPDATE vars SET name = 'last_invoices_created_index' WHERE name = 'last_invoice_created_index': UNIQUE constraint failed: vars.name

tests/test_plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2191,6 +2191,7 @@ def test_plugin_fail(node_factory):
21912191
l1.daemon.wait_for_log(r': exited during normal operation')
21922192

21932193

2194+
@pytest.mark.flaky(reruns=5)
21942195
@pytest.mark.openchannel('v1')
21952196
@pytest.mark.openchannel('v2')
21962197
def test_coin_movement_notices(node_factory, bitcoind, chainparams):

tests/test_reckless.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ def test_tag_install(node_factory):
351351
header = line
352352

353353

354+
@pytest.mark.flaky(reruns=5)
354355
@unittest.skipIf(VALGRIND and SLOW_MACHINE, "node too slow for starting plugin under valgrind")
355356
def test_reckless_uv_install(node_factory):
356357
node = get_reckless_node(node_factory)

tests/test_splicing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ def test_splice_stuck_htlc(node_factory, bitcoind, executor):
499499
assert l1.db_query("SELECT count(*) as c FROM channeltxs;")[0]['c'] == 0
500500

501501

502+
@pytest.mark.flaky(reruns=5)
502503
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
503504
def test_route_by_old_scid(node_factory, bitcoind):
504505
l1, l2, l3 = node_factory.line_graph(3, wait_for_announce=True, opts={'experimental-splicing': None, 'may_reconnect': True})

0 commit comments

Comments
 (0)