Skip to content

Commit

Permalink
passing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasht86 committed Aug 22, 2024
1 parent 41fbd72 commit 5953385
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/integration/test_integration_vespa_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ def test_control_plane_useragent(self):

def test_data_plane_useragent_sync(self):
with self.app.syncio() as session:
response = session.get(self.app.end_point + "/ApplicationStatus")
response = session.http_session.get(
self.app.end_point + "/ApplicationStatus"
)
self.assertEqual(
response.request.headers["User-Agent"],
f"pyvespa/{vespa.__version__}",
Expand All @@ -149,7 +151,9 @@ def test_data_plane_useragent_sync(self):
def test_data_plane_useragent_async(self):
async def get_resp():
async with self.app.asyncio() as session:
response = await session.get(self.app.end_point + "/ApplicationStatus")
response = await session.httpx_client.get(
self.app.end_point + "/ApplicationStatus"
)
return response

response = asyncio.run(get_resp())
Expand Down

0 comments on commit 5953385

Please sign in to comment.