test: tolerate container reconnect latency
This commit is contained in:
parent
7fa43a9e50
commit
c8a237aba4
|
|
@ -246,7 +246,9 @@ def test_release_artifact_files_one_mobile_issue_exactly_once_after_offline_relo
|
||||||
fake.issue_creation_enabled = True
|
fake.issue_creation_enabled = True
|
||||||
context.set_offline(False)
|
context.set_offline(False)
|
||||||
page.evaluate("window.dispatchEvent(new Event('online'))")
|
page.evaluate("window.dispatchEvent(new Event('online'))")
|
||||||
for _ in range(80):
|
# Containerized Actions runners can take longer than a local browser to wake the
|
||||||
|
# service worker and complete its identity handshake after reconnect.
|
||||||
|
for _ in range(160):
|
||||||
if fake.created_issues:
|
if fake.created_issues:
|
||||||
break
|
break
|
||||||
page.wait_for_timeout(250)
|
page.wait_for_timeout(250)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user