From 29247a9994758e2d511a2f686abb3cc4b8f94e54 Mon Sep 17 00:00:00 2001 From: Scott Sadler Date: Thu, 20 Apr 2017 16:58:40 +0200 Subject: [PATCH] test clarification --- tests/test_fastquery.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_fastquery.py b/tests/test_fastquery.py index 8621751a..200bd7f9 100644 --- a/tests/test_fastquery.py +++ b/tests/test_fastquery.py @@ -16,8 +16,8 @@ def blockdata(b, user_pk, user2_pk): block = Block([txs[i]]) b.write_block(block) blocks.append(block.to_dict()) - if i > 0: - b.write_vote(b.vote(block.id, '', i % 2 == 1)) + b.write_vote(b.vote(blocks[1]['id'], '', True)) + b.write_vote(b.vote(blocks[2]['id'], '', False)) return blocks, [b['id'] for b in blocks]