From 6c1bf4e7ed83c09fa6a91ec8e278bd2cbfa8cb1c Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Sun, 28 Oct 2018 22:41:08 -0700 Subject: [PATCH] Add size_on_disk test Co-authored-by: Simon --- qa/rpc-tests/wallet_overwintertx.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qa/rpc-tests/wallet_overwintertx.py b/qa/rpc-tests/wallet_overwintertx.py index d77a114db1c..5fa47322725 100755 --- a/qa/rpc-tests/wallet_overwintertx.py +++ b/qa/rpc-tests/wallet_overwintertx.py @@ -5,7 +5,7 @@ from test_framework.test_framework import BitcoinTestFramework from test_framework.util import assert_equal, initialize_chain_clean, \ - start_nodes, connect_nodes_bi, wait_and_assert_operationid_status + start_nodes, connect_nodes_bi, wait_and_assert_operationid_status, assert_greater_than from test_framework.authproxy import JSONRPCException from decimal import Decimal @@ -141,6 +141,10 @@ def run_test (self): self.nodes[0].generate(1) self.sync_all() bci = self.nodes[0].getblockchaininfo() + + # size_on_disk should be > 0 + assert_greater_than(bci['size_on_disk'], 0) + assert_equal(bci['consensus']['chaintip'], '5ba81b19') assert_equal(bci['consensus']['nextblock'], '5ba81b19') assert_equal(bci['upgrades']['5ba81b19']['status'], 'active')