changeset 29698:1bb854ed1680

Merge pull request #30 from braydonf/0.12.1-bitcore-fix-test test: fix determinism of address index test
author Chris Kleeschulte <kleetus@users.noreply.github.com>
date Thu, 18 Aug 2016 14:00:21 -0400
parents 8a496afb82f3 4bba444b3d9c
children 881542a51011 dfeac91b4d23
files
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/qa/rpc-tests/addressindex.py	Thu Aug 18 12:27:37 2016 -0400
+++ b/qa/rpc-tests/addressindex.py	Thu Aug 18 14:00:21 2016 -0400
@@ -23,10 +23,10 @@
     def setup_network(self):
         self.nodes = []
         # Nodes 0/1 are "wallet" nodes
-        self.nodes.append(start_node(0, self.options.tmpdir, ["-debug"]))
+        self.nodes.append(start_node(0, self.options.tmpdir, ["-debug", "-relaypriority=0"]))
         self.nodes.append(start_node(1, self.options.tmpdir, ["-debug", "-addressindex"]))
         # Nodes 2/3 are used for testing
-        self.nodes.append(start_node(2, self.options.tmpdir, ["-debug", "-addressindex"]))
+        self.nodes.append(start_node(2, self.options.tmpdir, ["-debug", "-addressindex", "-relaypriority=0"]))
         self.nodes.append(start_node(3, self.options.tmpdir, ["-debug", "-addressindex"]))
         connect_nodes(self.nodes[0], 1)
         connect_nodes(self.nodes[0], 2)
@@ -208,7 +208,7 @@
 
         utxos2 = self.nodes[1].getaddressutxos({"addresses": [address2]})
         assert_equal(len(utxos2), 1)
-        assert_equal(utxos2[0]["satoshis"], 5000000000)
+        assert_equal(utxos2[0]["satoshis"], amount)
 
         # Check sorting of utxos
         self.nodes[2].generate(150)