From 4f7e9da3dbd104a1d78be110868db08d915c190d Mon Sep 17 00:00:00 2001 From: Gijs van Dam Date: Thu, 10 Dec 2020 16:34:43 +0800 Subject: [PATCH] Fix example test The example test uses a rpc call `summary` that isn't available (anymore) The assert should be lowercase, otherwise it fails. --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index f5ba46d..264a5ab 100644 --- a/README.md +++ b/README.md @@ -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