Skip to content

Commit f2fbc22

Browse files
committed
apm-2006: set timeout back to 60sec
1 parent 55621b1 commit f2fbc22

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

docker/sync-wrap/src/handlers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ async function proxy(req, res, next) {
458458
await sleep(Math.min(options.sleep, remaining_timeout));
459459

460460
remaining_timeout = options.respond_before.getTime() - (new Date()).getTime();
461-
options.timeout = Math.max(remaining_timeout, 5000);
461+
options.timeout = Math.max(remaining_timeout, 50000);
462462

463463

464464
options.sleep = Math.min(2*options.sleep, 1000*locals.max_sleep);
@@ -493,7 +493,7 @@ async function proxy(req, res, next) {
493493
}
494494
let prev_cookies = options.received_cookies.values();
495495
let headers = prev_cookies.length === 0 ? undefined : ["set-cookie", prev_cookies];
496-
await send_response(502, {headers: headers, error: fin.error});
496+
await send_response(502, {headers: headers, error: fin.error || fin});
497497
});
498498
}
499499

e2e/tests/api_tests.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,12 @@ async def is_deployed(resp: ClientResponse):
7070

7171
return backend.get("commitId") == api_test_config.commit_id
7272

73-
deploy_timeout = 120 if api_test_config.api_environment.endswith("sandbox") else 30
74-
7573
await poll_until(
7674
make_request=lambda: api_client.get(
7775
"_status", headers={"apikey": env.status_endpoint_api_key()}
7876
),
7977
until=is_deployed,
80-
timeout=deploy_timeout,
78+
timeout=120,
8179
)
8280

8381

0 commit comments

Comments
 (0)