Skip to content

Commit

Permalink
GH-459 Increase timeout as sync wait times out and connection has to …
Browse files Browse the repository at this point in the history
…be re-established
  • Loading branch information
heifner committed Aug 3, 2024
1 parent 98a6e11 commit 261ae23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/p2p_sync_throttle_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def extractPrometheusMetric(connID: str, metric: str, text: str):
'block_sync_bytes_sent',
response)
Print(f'End sync throttling bytes sent: {endSyncThrottlingBytesSent}')
assert throttledNode.waitForBlock(beginLargeBlocksHeadBlock, timeout=90), f'Wait for begin block {beginLargeBlocksHeadBlock} on throttled sync node timed out'
assert throttledNode.waitForBlock(beginLargeBlocksHeadBlock, timeout=120), f'Wait for begin block {beginLargeBlocksHeadBlock} on throttled sync node timed out'
# Throttled node is connecting to a listen port with a block sync throttle applied so it will receive
# blocks more slowly during syncing than an unthrottled node.
wasThrottled = False
Expand All @@ -218,7 +218,7 @@ def extractPrometheusMetric(connID: str, metric: str, text: str):
if throttledState:
wasThrottled = True
break
assert throttledNode.waitForBlock(endLargeBlocksHeadBlock, timeout=90), f'Wait for block {endLargeBlocksHeadBlock} on sync node timed out'
assert throttledNode.waitForBlock(endLargeBlocksHeadBlock, timeout=120), f'Wait for block {endLargeBlocksHeadBlock} on sync node timed out'
endThrottledSync = time.time()
response = throttledNode.processUrllibRequest('prometheus', 'metrics', exitOnError=True, returnType=ReturnType.raw, printReturnLimit=16).decode()
Print('Throttled Node End State')
Expand Down

0 comments on commit 261ae23

Please sign in to comment.