Fix example test

The example test uses a rpc call `summary` that isn't available (anymore)
The assert should be lowercase, otherwise it fails.
This commit is contained in:
Gijs van Dam
2020-12-10 16:34:43 +08:00
committed by Christian Decker
parent b0d462a303
commit 4f7e9da3db

View File

@@ -91,9 +91,8 @@ pluginopt = {'plugin': os.path.join(os.path.dirname(__file__), "YOUR_PLUGIN.py")
def test_your_plugin(node_factory, bitcoind):
l1 = node_factory.get_node(options=pluginopt)
s = l1.rpc.summary()
s = l1.rpc.getinfo()
assert(s['network'] == 'REGTEST') # or whatever you want to test
assert(s['network'] == 'regtest')
```
Tests are run against pull requests, all commits on `master`, as well as once