Skip to content

Commit eae4238

Browse files
committed
increase agreement termination test timeouts
1 parent a52bed5 commit eae4238

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/goth_tests/test_agreement_termination/requestor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async def worker(ctx: WorkContext, tasks):
4343
yield script
4444
else:
4545
# Simulate some work
46-
script.run("/bin/sleep", "5")
46+
script.run("/bin/sleep", "1")
4747
yield script
4848

4949
task.accept_result()

tests/goth_tests/test_agreement_termination/test_agreement_termination.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,16 @@ async def test_agreement_termination(
8888

8989
# Wait for worker failure due to command error
9090
assertion = cmd_monitor.add_assertion(assert_command_error)
91-
agr_id = await assertion.wait_for_result(timeout=60)
91+
agr_id = await assertion.wait_for_result(timeout=120)
9292
logger.info("Detected command error in activity for agreement %s", agr_id)
9393

9494
# Make sure no new tasks are sent and the agreement is terminated
9595
assertion = cmd_monitor.add_assertion(
9696
partial(assert_agreement_cancelled, agr_id),
9797
name=f"assert_agreement_cancelled({agr_id})",
9898
)
99-
await assertion.wait_for_result(timeout=10)
99+
await assertion.wait_for_result(timeout=20)
100100

101101
# Wait for executor shutdown
102-
await cmd_monitor.wait_for_pattern("ShutdownFinished", timeout=60)
102+
await cmd_monitor.wait_for_pattern("ShutdownFinished", timeout=120)
103103
logger.info("Requestor script finished")

0 commit comments

Comments
 (0)