From 7de9b1711f4a63e6613e3a9d57bb05593ecd1b41 Mon Sep 17 00:00:00 2001 From: Ryan Henderson Date: Thu, 14 Jul 2016 10:33:35 +0200 Subject: [PATCH] Fix non deterministic test (#441) --- tests/db/test_bigchain_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/db/test_bigchain_api.py b/tests/db/test_bigchain_api.py index 418b9983..e5a92440 100644 --- a/tests/db/test_bigchain_api.py +++ b/tests/db/test_bigchain_api.py @@ -343,7 +343,7 @@ class TestBigchainApi(object): b.write_block(block_1, durability='hard') vote_1 = b.vote(block_1, b.get_last_voted_block(), True) # mangle the signature - vote_1['signature'] = vote_1['signature'][2:] + vote_1['signature'][:1] + vote_1['signature'] = 'a' * 87 r.table('votes').insert(vote_1).run(b.conn) from bigchaindb.exceptions import ImproperVoteError with pytest.raises(ImproperVoteError) as excinfo: