Skip to content

Commit 38e2096

Browse files
committed
Unskip (completely) tests w/ unknown outputs because auto_approve
1 parent f60db22 commit 38e2096

File tree

5 files changed

+2
-10
lines changed

5 files changed

+2
-10
lines changed

tests/test_bookkeeper.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ def test_bookkeeping_closing_subsat_htlcs(node_factory, bitcoind, chainparams):
118118

119119

120120
@unittest.skipIf(TEST_NETWORK != 'regtest', "External wallet support doesn't work with elements yet.")
121-
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "remote_hsmd doesn't allow withdrawal to non-wallet, non-allowlisted address")
122121
def test_bookkeeping_external_withdraws(node_factory, bitcoind):
123122
""" Withdrawals to an external address shouldn't be included
124123
in the income statements until confirmed"""
@@ -200,7 +199,6 @@ def test_bookkeeping_external_withdraws(node_factory, bitcoind):
200199

201200
@unittest.skipIf(TEST_NETWORK != 'regtest', "External wallet support doesn't work with elements yet.")
202201
@unittest.skipIf(os.getenv('TEST_DB_PROVIDER', 'sqlite3') != 'sqlite3', "Depends on sqlite3 database location")
203-
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "policy: can't withdraw to non-wallet address")
204202
def test_bookkeeping_external_withdraw_missing(node_factory, bitcoind):
205203
""" Withdrawals to an external address turn up as
206204
extremely large onchain_fees when they happen before
@@ -267,7 +265,6 @@ def test_bookkeeping_external_withdraw_missing(node_factory, bitcoind):
267265

268266

269267
@unittest.skipIf(TEST_NETWORK != 'regtest', "External wallet support doesn't work with elements yet.")
270-
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "policy: can't withdraw to non-wallet address")
271268
def test_bookkeeping_rbf_withdraw(node_factory, bitcoind):
272269
""" If a withdraw to an external gets RBF'd,
273270
it should *not* show up in our income ever.

tests/test_closing.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3080,8 +3080,7 @@ def test_permfail_htlc_out(node_factory, bitcoind, executor):
30803080
bitcoind.generate_block(2)
30813081
wait_for(lambda: l2.rpc.listpeers()['peers'] == [])
30823082

3083-
3084-
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "policy: can't withdraw to non-wallet address") # FIXME - should work with VLS_PERMISSIVE
3083+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "policy: can't withdraw to non-wallet address") # FIXME - should work with auto-approve
30853084
def test_permfail(node_factory, bitcoind):
30863085
l1, l2 = node_factory.line_graph(2)
30873086

tests/test_connection.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,7 +1640,7 @@ def test_funding_v2_cancel_race(node_factory, bitcoind, executor):
16401640
@pytest.mark.openchannel('v1')
16411641
@pytest.mark.openchannel('v2')
16421642
@unittest.skipIf(TEST_NETWORK != 'regtest', "External wallet support doesn't work with elements yet.")
1643-
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "remote_hsmd can't handle random external addresses (allowlist)")
1643+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "remote_hsmd can't handle random external addresses (allowlist)") # FIXME - should work w/ auto-approve
16441644
def test_funding_close_upfront(node_factory, bitcoind):
16451645
opts = {'plugin': os.path.join(os.getcwd(), 'tests/plugins/openchannel_hook_accepter.py')}
16461646

@@ -2854,7 +2854,6 @@ def mock_donothing(r):
28542854
assert start_amount > end_amount + Millisatoshi(10 ** 7 * 100)
28552855

28562856

2857-
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "policy: can't withdraw to non-wallet address")
28582857
def test_no_fee_estimate(node_factory, bitcoind, executor):
28592858
l1 = node_factory.get_node(start=False, options={'dev-no-fake-fees': True})
28602859

tests/test_misc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,6 @@ def is_p2wpkh(output):
458458
assert only_one(fundingtx['vin'])['txid'] == res['wallettxid']
459459

460460

461-
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "policy: can't withdraw to non-wallet address")
462461
def test_withdraw_misc(node_factory, bitcoind, chainparams):
463462
def dont_spend_outputs(n, txid):
464463
"""Reserve both outputs (we assume there are two!) in case any our ours, so we don't spend change: wrecks accounting checks"""

tests/test_wallet.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828

2929
@unittest.skipIf(TEST_NETWORK != 'regtest', "Test relies on a number of example addresses valid only in regtest")
30-
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "policy: can't withdraw to non-wallet address")
3130
def test_withdraw(node_factory, bitcoind):
3231
amount = 1000000
3332
# Don't get any funds from previous runs.
@@ -1457,7 +1456,6 @@ def test_withdraw_nlocktime_fuzz(node_factory, bitcoind):
14571456
raise Exception("No transaction with fuzzed nLockTime !")
14581457

14591458

1460-
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "addr2 and addr3 unknown to l1")
14611459
def test_multiwithdraw_simple(node_factory, bitcoind, chainparams):
14621460
"""
14631461
Test simple multiwithdraw usage.

0 commit comments

Comments
 (0)