test: Ensure BigQueryAgentAnalyticsPlugin is shut down after each test

Improves test reliability by guaranteeing the BigQueryAgentAnalyticsPlugin is shut down after each test execution. This is achieved by wrapping test logic in try/finally blocks, using a yield fixture, or employing a new asynccontextmanager to ensure the plugin.shutdown() method is always called, preventing potential resource leaks between tests.

PiperOrigin-RevId: 862951816
This commit is contained in:
Google Team Member
2026-01-29 16:31:04 -08:00
committed by Copybara-Service
parent 288c2c448d
commit c0c98d94b3
2 changed files with 2182 additions and 2119 deletions
File diff suppressed because it is too large Load Diff