Skip to content

Commit 2a4559d

Browse files
committed
Unskip (completely) tests w/ unknown outputs because auto_approve
1 parent 878b285 commit 2a4559d

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
@@ -119,7 +119,6 @@ def test_bookkeeping_closing_subsat_htlcs(node_factory, bitcoind, chainparams):
119119

120120

121121
@unittest.skipIf(TEST_NETWORK != 'regtest', "External wallet support doesn't work with elements yet.")
122-
@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")
123122
def test_bookkeeping_external_withdraws(node_factory, bitcoind):
124123
""" Withdrawals to an external address shouldn't be included
125124
in the income statements until confirmed"""
@@ -201,7 +200,6 @@ def test_bookkeeping_external_withdraws(node_factory, bitcoind):
201200

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

269267

270268
@unittest.skipIf(TEST_NETWORK != 'regtest', "External wallet support doesn't work with elements yet.")
271-
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "policy: can't withdraw to non-wallet address")
272269
def test_bookkeeping_rbf_withdraw(node_factory, bitcoind):
273270
""" If a withdraw to an external gets RBF'd,
274271
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
@@ -3104,9 +3104,8 @@ def test_permfail_htlc_out(node_factory, bitcoind, executor):
31043104
bitcoind.generate_block(2)
31053105
wait_for(lambda: l2.rpc.listpeers()['peers'] == [])
31063106

3107-
31083107
@pytest.mark.developer("needs DEVELOPER=1")
3109-
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "policy: can't withdraw to non-wallet address") # FIXME - should work with VLS_PERMISSIVE
3108+
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd'), "policy: can't withdraw to non-wallet address") # FIXME - should work with auto-approve
31103109
def test_permfail(node_factory, bitcoind):
31113110
l1, l2 = node_factory.line_graph(2)
31123111

tests/test_connection.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,7 +1672,7 @@ def test_funding_v2_cancel_race(node_factory, bitcoind, executor):
16721672
@pytest.mark.openchannel('v1')
16731673
@pytest.mark.openchannel('v2')
16741674
@unittest.skipIf(TEST_NETWORK != 'regtest', "External wallet support doesn't work with elements yet.")
1675-
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "remote_hsmd can't handle random external addresses (allowlist)")
1675+
@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
16761676
def test_funding_close_upfront(node_factory, bitcoind):
16771677
opts = {'plugin': os.path.join(os.getcwd(), 'tests/plugins/openchannel_hook_accepter.py')}
16781678

@@ -2907,7 +2907,6 @@ def mock_donothing(r):
29072907

29082908

29092909
@pytest.mark.developer("needs dev_fail")
2910-
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "policy: can't withdraw to non-wallet address")
29112910
def test_no_fee_estimate(node_factory, bitcoind, executor):
29122911
l1 = node_factory.get_node(start=False, options={'dev-no-fake-fees': True})
29132912

tests/test_misc.py

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

471471

472-
@unittest.skipIf(os.getenv('SUBDAEMON').startswith('hsmd:remote_hsmd') and os.getenv('VLS_PERMISSIVE') != '1', "policy: can't withdraw to non-wallet address")
473472
def test_withdraw_misc(node_factory, bitcoind, chainparams):
474473
def dont_spend_outputs(n, txid):
475474
"""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.
@@ -1419,7 +1418,6 @@ def test_withdraw_nlocktime_fuzz(node_factory, bitcoind):
14191418
raise Exception("No transaction with fuzzed nLockTime !")
14201419

14211420

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

0 commit comments

Comments
 (0)