core-lightning/tests
Rusty Russell 2696ec6ccb pytest: fix assumptions in test_withdraw_misc
First, simplify: amount is set to 1000000, but then we deposit 1000000 + 0.01btc
(i.e. 2000000), and we always use 2 * amount.  Just use a single constant to
make it clear.

Secondly, we assume that the wallet considers outputs spent as soon as
we created the tx: this will not be true once withdraw uses sendpsbt.
So, we generate blocks, but now sometimes withdraw will pick up change
txs, so we need to reserve them to avoid that messing our coinmovements.

Finally, we assumed the withdrawl order was BIP69, which becomes
variable.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-09-08 10:14:42 +09:30
..
data hsmd/db: backfill pubkey information so that psbts signing works 2020-07-29 13:13:46 +02:00
plugins openchannel: test new hook chainable mechanics 2020-09-08 06:14:29 +09:30
vectors pytest: Add tests for the sphinx onion generation and processing 2020-03-12 10:25:01 +10:30
benchmark.py py-tests: rename 'announce' to 'wait_for_announce' 2018-12-08 15:15:55 -08:00
conftest.py
db.py pytest: Have the DB provider search for the postgres binary 2019-09-22 02:03:43 +00:00
fixtures.py pytest: Add a compat() fixture allowing checks for specific flags 2020-07-07 23:25:45 +02:00
test_closing.py sendpsbt: just reserve (maybe bump) inputs on send, don't mark spent. 2020-09-08 10:14:42 +09:30
test_connection.py sendpsbt: just reserve (maybe bump) inputs on send, don't mark spent. 2020-09-08 10:14:42 +09:30
test_db.py hsmd/db: backfill pubkey information so that psbts signing works 2020-07-29 13:13:46 +02:00
test_gossip.py pytest: increase channel sizes so they reach min capacity with option_anchor_outputs 2020-09-01 12:27:39 -05:00
test_invoices.py json_command: command_fail_badparam helper. 2020-09-02 09:46:37 +09:30
test_misc.py pytest: fix assumptions in test_withdraw_misc 2020-09-08 10:14:42 +09:30
test_onion.py pytest: Actually make sure that the direcory exists 2020-03-24 09:52:33 +10:30
test_pay.py json_command: command_fail_badparam helper. 2020-09-02 09:46:37 +09:30
test_plugin.py pytest: fix assumptions in test_withdraw_misc 2020-09-08 10:14:42 +09:30
test_wallet.py txprepare: remove old code, switch to plugin. 2020-09-08 10:14:42 +09:30
utils.py pytest: allow variable-order coin_moves, and give more information on failure. 2020-09-08 10:14:42 +09:30