Skip to content

Commit

Permalink
move access of events from queue into context manager. Divergent resu…
Browse files Browse the repository at this point in the history
…lt between local and ci
  • Loading branch information
taddes committed Apr 16, 2024
1 parent 0758445 commit bc577c9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/integration/test_integration_all_rust.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,14 +670,14 @@ async def test_sentry_output_autoendpoint(self):
await self.shut_down(client)
async with httpx.AsyncClient() as httpx_client:
await httpx_client.get(f"{endpoint}/__error__", timeout=30)
# 2 events excpted: 1 from a panic and 1 from a returned Error
event1 = MOCK_SENTRY_QUEUE.get(timeout=5)
event2 = MOCK_SENTRY_QUEUE.get(timeout=5)
values = (
event1["exception"]["values"][0]["value"],
event2["exception"]["values"][0]["value"],
)
assert sorted(values) == ["ERROR:Success", "LogCheck"]
# 2 events excpted: 1 from a panic and 1 from a returned Error
event1 = MOCK_SENTRY_QUEUE.get(timeout=5)
event2 = MOCK_SENTRY_QUEUE.get(timeout=5)
values = (
event1["exception"]["values"][0]["value"],
event2["exception"]["values"][0]["value"],
)
assert sorted(values) == ["ERROR:Success", "LogCheck"]

@max_logs(conn=4)
async def test_no_sentry_output(self):
Expand Down

0 comments on commit bc577c9

Please sign in to comment.