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')
|
b.write_block(block_1, durability='hard')
|
||||||
vote_1 = b.vote(block_1, b.get_last_voted_block(), True)
|
vote_1 = b.vote(block_1, b.get_last_voted_block(), True)
|
||||||
# mangle the signature
|
# 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)
|
r.table('votes').insert(vote_1).run(b.conn)
|
||||||
from bigchaindb.exceptions import ImproperVoteError
|
from bigchaindb.exceptions import ImproperVoteError
|
||||||
with pytest.raises(ImproperVoteError) as excinfo:
|
with pytest.raises(ImproperVoteError) as excinfo:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user