Rusty Russell
778b756369
channel: support HTLC forwarding.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-05-02 11:47:19 +02:00
Rusty Russell
aa01b7d120
test_lightningd.py: helper to sync blockheight.
...
We need this to avoid spurious errors in the next patch.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-05-02 11:46:46 +02:00
Christian Decker
dc7b832e83
pytest: Added gossip test for new daemon
2017-05-02 11:59:24 +09:30
Rusty Russell
f61da7eb64
tests/test_lightningd.py: incorporate everything from old test-basic shell test.
...
This moves all the non-legacy blackbox testing into python.
Before:
real 10m18.385s
After:
real 9m54.877s
Note that this doesn't valgrind the subdaemons: that patch seems to cause
some issues in the python framework which I am still chasing.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-04-29 10:30:10 +02:00
Rusty Russell
366d67ae6d
tests/test_lightningd.py: extract connect and fund_channel helpers.
...
Common pattern when setting up tests.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-04-29 10:30:10 +02:00
Rusty Russell
056f93e2d2
ping: move test to python.
...
Faster and neater.
Before:
real 0m11.200s
After:
real 0m9.101s
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-04-29 10:30:10 +02:00
Christian Decker
4e0be7a48f
pytest: Added dynamic RPC call dispatch
...
Instead of having to define every single method we can now just call
any method, it'll fail upstream if it does not exist.
2017-04-24 05:18:11 +00:00
Christian Decker
b6fea5b429
pytest: Check that channels are announced and activated correctly
2017-04-11 16:56:27 -07:00
Christian Decker
9c7c2a3f2f
pytest: Added simple pytest for the new JSON-RPC
2017-03-20 11:18:00 +10:30
Christian Decker
b5c2d7d47d
pytest: Gossip subdaemon had a flaky test
...
Whenever we were checking for the status before the daemon was
initialized the test would fail. Now just waiting for the state
transition.
2017-02-08 16:59:57 +01:00
Christian Decker
66175c7361
Merge pull request #115 from ElementsProject/pytest-pathfix
...
pytest: don't assume paths of valgrind and bitcoind.
2017-01-24 14:22:23 +01:00
Rusty Russell
1575181ef5
pytest: don't assume paths of valgrind and bitcoind.
...
In particular, my bitcoind is in /usr/local/bin
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-01-24 14:37:56 +10:30
Christian Decker
180c96776b
pytest: Split the python integration tests into new and legacy
2017-01-23 10:37:34 +01:00
Christian Decker
cf1c03f4d9
pytest: Implemented initial python integration tests.
2017-01-23 10:45:36 +10:30