Skip to content

Commit 9fd9e00

Browse files
APM-2884 Fix failing 'test_wait_for_status' test
1 parent 48eae91 commit 9fd9e00

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

tests/api_tests.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ async def is_401(resp: ClientResponse) -> bool:
2020
return resp.status == 401
2121

2222

23+
async def is_200(resp: ClientResponse) -> bool:
24+
return resp.status == 200
25+
26+
2327
@pytest.mark.e2e
2428
@pytest.mark.smoketest
2529
def test_output_test_config(api_test_config: APITestSessionConfig):
@@ -65,11 +69,8 @@ async def test_wait_for_status(api_client: APISessionClient, api_test_config: AP
6569
test for _status .. this uses poll_until to wait until the correct SOURCE_COMMIT_ID ( from env var )
6670
is available
6771
"""
68-
69-
is_deployed = partial(_is_deployed, api_test_config=api_test_config)
70-
7172
await poll_until(
7273
make_request=lambda: api_client.get('_status', headers={'apikey': env.status_endpoint_api_key()}),
73-
until=is_deployed,
74+
until=is_200,
7475
timeout=120
7576
)

0 commit comments

Comments
 (0)