From 1198077e6cbe3f292b25060619065c510f56cc13 Mon Sep 17 00:00:00 2001 From: chinmay-browserstack <92926953+chinmay-browserstack@users.noreply.github.com> Date: Fri, 24 Nov 2023 16:51:01 +0530 Subject: [PATCH] Change request timeout to 60 seconds (#77) --- .github/workflows/lint.yml | 2 +- percy/lib/cli_wrapper.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5be3680..a180105 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,7 +8,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: 3.x + python-version: 3.11 - uses: actions/cache@v3 with: path: ~/.cache/pip diff --git a/percy/lib/cli_wrapper.py b/percy/lib/cli_wrapper.py index b33180a..9e46397 100644 --- a/percy/lib/cli_wrapper.py +++ b/percy/lib/cli_wrapper.py @@ -48,7 +48,7 @@ def post_screenshots(self, name, tag, tiles, external_debug_url=None, ignored_el body['client_info'] = Environment._get_client_info() body['environment_info'] = Environment._get_env_info() - response = requests.post(f'{PERCY_CLI_API}/percy/comparison', json=body, timeout=30) + response = requests.post(f'{PERCY_CLI_API}/percy/comparison', json=body, timeout=60) # Handle errors response.raise_for_status() data = response.json()