diff --git a/tests/integrations/openai_agents/test_openai_agents.py b/tests/integrations/openai_agents/test_openai_agents.py index 2cc33d6fd7..aa75d81f05 100644 --- a/tests/integrations/openai_agents/test_openai_agents.py +++ b/tests/integrations/openai_agents/test_openai_agents.py @@ -944,7 +944,8 @@ async def test_client_span_custom_model( @pytest.mark.parametrize("stream_gen_ai_spans", [True, False]) -def test_agent_invocation_span_sync_no_pii( +@pytest.mark.asyncio +async def test_agent_invocation_span_sync_no_pii( sentry_init, capture_events, capture_items, @@ -1077,6 +1078,7 @@ def test_agent_invocation_span_sync_no_pii( @pytest.mark.parametrize("stream_gen_ai_spans", [True, False]) +@pytest.mark.asyncio @pytest.mark.parametrize( "instructions", ( @@ -1170,7 +1172,7 @@ def test_agent_invocation_span_sync_no_pii( ), ], ) -def test_agent_invocation_span_sync( +async def test_agent_invocation_span_sync( sentry_init, capture_events, capture_items,