core-lightning/tests
Rusty Russell 7b7d46c166 pytest: extract separate tests that spendable_msat is accurate.
Turns out we needed more comprehensive testing; we ended up with three
separate tests.  To avoid changing test_channel_drainage as we fix
spendable_msat, I substituted raw numbers there.

The first is a variation of the existing tests, testing we can't
exceed spendable_msat, and we can pay it, both ways.

The second is with a larger amount, which triggers a different problem.

The final is with a giant channel, which tests our 2^32-1 msat cap.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-06-11 23:19:11 +00:00
..
data pytest: test starting with db corrupted by dangling peer. 2019-02-21 12:03:54 +01:00
plugins tests: add plugin for simple invoice delay. 2019-06-11 23:19:11 +00:00
benchmark.py py-tests: rename 'announce' to 'wait_for_announce' 2018-12-08 15:15:55 -08:00
btcproxy.py pytest: create proper mock failures. 2019-01-29 04:50:01 +00:00
conftest.py pytest: Pass result to fixtures and keep directories of failed tests 2018-08-07 00:54:19 +00:00
fixtures.py pytest: catch more gossip-related errors. 2019-06-03 11:04:25 -07:00
requirements.txt pytest: Update test dependencies to latest version 2019-01-29 00:50:09 +00:00
test_closing.py htlc: Replay unprocessed HTLCs loaded from the DB 2019-06-04 00:27:15 +00:00
test_connection.py channeld: don't send feerate spam if we can't set it as high as we want. 2019-06-09 02:39:05 +00:00
test_db.py db: fix dangling peers on db upgrade. 2019-02-21 12:03:54 +01:00
test_gossip.py pytest: move test_channel_drainage to test_pay.py 2019-06-11 23:19:11 +00:00
test_invoices.py bolt11: fix decoding and encoding of unknown fields. 2019-05-10 11:25:36 +00:00
test_misc.py pytest: cleanup test_funding_reorg_remote_lags 2019-06-07 10:34:34 +02:00
test_pay.py pytest: extract separate tests that spendable_msat is accurate. 2019-06-11 23:19:11 +00:00
test_plugin.py tests: add plugin for simple invoice delay. 2019-06-11 23:19:11 +00:00
test_wallet.py wallet: clean reserved inputs on startup. 2019-06-06 04:47:44 +00:00
utils.py pytest: test that we unreserve txprepare inputs across shutdown/crash. 2019-06-06 04:47:44 +00:00