Skip to content

Commit 6bf520c

Browse files
committed
ci: make building Actors in intgrt tests more stable
relates: #301
1 parent e200a8e commit 6bf520c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/integration/conftest.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,12 @@ async def _make_actor(
242242
actor_client = apify_client_async.actor(created_actor['id'])
243243

244244
print(f'Building Actor {actor_name}...')
245-
build = await actor_client.build(version_number='0.0', wait_for_finish=300)
245+
build_result = await actor_client.build(version_number='0.0', wait_for_finish=60)
246+
build_client = apify_client_async.build(build_result['id'])
247+
build_client_result = await build_client.wait_for_finish(wait_secs=600)
246248

247-
assert build['status'] == ActorJobStatus.SUCCEEDED
249+
assert build_client_result is not None
250+
assert build_client_result['status'] == ActorJobStatus.SUCCEEDED
248251

249252
# We only mark the client for cleanup if the build succeeded,
250253
# so that if something goes wrong here,

0 commit comments

Comments
 (0)