mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Problem: abci tests are slow and unreliable
Solution: - Removed the `bdb` flag from `test_get_divisble_transactions_returns_500` since it causes Tendermint to crash - Reduced the sleep cycles from 3s to 1s on `test_upsert_validator`
This commit is contained in:
parent
bac26c4a1d
commit
35191f0ca1
@ -244,7 +244,7 @@ def test_upsert_validator(b, node_key, node_keys, ed25519_node_keys):
|
|||||||
new_validator, None).sign([node_key.private_key])
|
new_validator, None).sign([node_key.private_key])
|
||||||
code, message = b.write_transaction(election, 'broadcast_tx_commit')
|
code, message = b.write_transaction(election, 'broadcast_tx_commit')
|
||||||
assert code == 202
|
assert code == 202
|
||||||
time.sleep(3)
|
time.sleep(1)
|
||||||
|
|
||||||
assert b.get_transaction(election.id)
|
assert b.get_transaction(election.id)
|
||||||
|
|
||||||
@ -252,7 +252,7 @@ def test_upsert_validator(b, node_key, node_keys, ed25519_node_keys):
|
|||||||
assert tx_vote.validate(b)
|
assert tx_vote.validate(b)
|
||||||
code, message = b.write_transaction(tx_vote, 'broadcast_tx_commit')
|
code, message = b.write_transaction(tx_vote, 'broadcast_tx_commit')
|
||||||
assert code == 202
|
assert code == 202
|
||||||
time.sleep(3)
|
time.sleep(1)
|
||||||
|
|
||||||
resp = requests.get(b.endpoint + 'validators')
|
resp = requests.get(b.endpoint + 'validators')
|
||||||
validator_pub_keys = []
|
validator_pub_keys = []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user