#10339 refactor: Fix more flaky Snowplow tests by ensuring a previously-active environment is deactivated when none is selected
Pull request opened by
edgarrmondragon
Description
SSIA
Checklist
• I have read the
contribution guide
Was generative AI tooling used to co-author this PR?
• Yes (please specify the tool below)
Related Issues
• Closes #XXXX
Summary by Sourcery
Ensure environment activation and telemetry state are reset between CLI invocations, and make the related Snowplow tests reliable.
Bug Fixes:
• Prevent previously active environments from remaining selected when a CLI invocation has no environment configured.
• Clear the telemetry project context when an explicitly requested environment is unavailable.
Enhancements:
• Make Snowplow project-context tests reliable by flushing telemetry and waiting for asynchronous event processing.
• Remove the test’s flaky expected failure marker.
Tests:
• Stabilize environment telemetry assertions against asynchronous Snowplow event delivery.
meltano/meltano