mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Fix non deterministic test (#441)
This commit is contained in:
parent
47e1b3cf4e
commit
7de9b1711f
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user