Skip to content

Commit

Permalink
fix(test): transactions.py with nightly_protocol
Browse files Browse the repository at this point in the history
Some changes to the test: query the observer node, disable storage
checking and set a low state sync timeout.
Fixes #4133

Test plan
---------
nayduck
  • Loading branch information
mikhailOK committed Mar 18, 2021
1 parent ad3de8f commit 05aebdc
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pytest/tests/sanity/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,14 @@
["epoch_length", 10],
["block_producer_kickout_threshold", 70]
],
client_config_changes={ 4: {"tracked_shards": [0, 1, 2, 3]}}
client_config_changes={
0: {"consensus": {"state_sync_timeout": {"secs": 2, "nanos": 0}}},
1: {"consensus": {"state_sync_timeout": {"secs": 2, "nanos": 0}}},
2: {"consensus": {"state_sync_timeout": {"secs": 2, "nanos": 0}}},
3: {"consensus": {"state_sync_timeout": {"secs": 2, "nanos": 0}}},
4: {"consensus": {"state_sync_timeout": {"secs": 2, "nanos": 0}},
"tracked_shards": [0, 1, 2, 3]}
}
)

started = time.time()
Expand All @@ -41,7 +48,7 @@

while True:
assert time.time() - started < TIMEOUT
status = nodes[3].get_status()
status = nodes[4].get_status(check_storage=False)

height = status['sync_info']['latest_block_height']
hash_ = status['sync_info']['latest_block_hash']
Expand Down

0 comments on commit 05aebdc

Please sign in to comment.