Skip to content

Commit

Permalink
Update tests for db-sync 13.2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturWieczorek committed Feb 6, 2024
1 parent 2047788 commit 63bb3d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cardano_node_tests/tests/test_pools.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ def _query_func():
ledger_pool_data=pool_params, pool_id=pool_creation_out.stake_pool_id
)

dbsync_utils.retry_query(query_func=_query_func, timeout=120)
dbsync_utils.retry_query(query_func=_query_func, timeout=300)

@allure.link(helpers.get_vcs_link())
@common.PARAM_USE_BUILD_CMD
Expand Down Expand Up @@ -781,7 +781,7 @@ def _query_func():
ledger_pool_data=pool_params, pool_id=pool_creation_out.stake_pool_id
)

dbsync_utils.retry_query(query_func=_query_func, timeout=120)
dbsync_utils.retry_query(query_func=_query_func, timeout=300)

@allure.link(helpers.get_vcs_link())
@common.PARAM_USE_BUILD_CMD
Expand Down
3 changes: 1 addition & 2 deletions cardano_node_tests/utils/dbsync_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,8 +723,7 @@ def query_address_reward(
"FROM reward "
"INNER JOIN stake_address ON reward.addr_id = stake_address.id "
"LEFT JOIN pool_hash ON pool_hash.id = reward.pool_id "
"WHERE (stake_address.view = %s) AND (reward.spendable_epoch BETWEEN %s AND %s) "
"ORDER BY reward.id;"
"WHERE (stake_address.view = %s) AND (reward.spendable_epoch BETWEEN %s AND %s) ;"
)

with execute(query=query, vars=(address, epoch_from, epoch_to)) as cur:
Expand Down

0 comments on commit 63bb3d1

Please sign in to comment.