Fix non deterministic test (#441)

This commit is contained in:
Ryan Henderson 2016-07-14 10:33:35 +02:00 committed by GitHub
parent 47e1b3cf4e
commit 7de9b1711f

View File

@ -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: