@@ -49,22 +49,22 @@ async def _is_complete(resp: ClientResponse):
4949@pytest .mark .asyncio
5050async def test_api_status_with_service_header_another_service (api_client : APISessionClient ):
5151
52- async with api_client .get ("_status" , headers = {'x-apim-service' : 'async-slowapp' }) as r :
53- assert r .status == 200 , (r .status , r .reason , (await r .text ())[:2000 ])
54- body = await r .json ()
52+ r = await api_client .get ("_status" , allow_retries = True , max_retries = 5 , headers = {'x-apim-service' : 'async-slowapp' })
53+ assert r .status == 200 , (r .status , r .reason , (await r .text ())[:2000 ])
54+ body = await r .json ()
5555
56- assert body .get ('service' ) == 'sync-wrap'
56+ assert body .get ('service' ) == 'sync-wrap'
5757
5858
5959@pytest .mark .smoketest
6060@pytest .mark .asyncio
6161async def test_api_status_with_service_header (api_client : APISessionClient ):
6262
63- async with api_client .get ("_status" , headers = {'x-apim-service' : 'sync-wrap' }) as r :
64- assert r .status == 200 , (r .status , r .reason , (await r .text ())[:2000 ])
65- body = await r .json ()
63+ r = await api_client .get ("_status" , allow_retries = True , max_retries = 5 , headers = {'x-apim-service' : 'sync-wrap' })
64+ assert r .status == 200 , (r .status , r .reason , (await r .text ())[:2000 ])
65+ body = await r .json ()
6666
67- assert body .get ('service' ) == 'sync-wrap'
67+ assert body .get ('service' ) == 'sync-wrap'
6868
6969
7070@pytest .mark .asyncio
0 commit comments