Files
unifi-network-operator/internal/controller
Vegard Engen 3cc169713e Fix test cleanup to handle missing resources gracefully
Make AfterEach cleanup blocks more robust by only attempting to delete
resources if they exist. This prevents test failures when resources have
already been deleted or don't exist.

Changes:
- Check if resource exists before attempting deletion
- Only call Delete if Get succeeds (err == nil)
- Applied to all 5 controller test files

This fixes intermittent test failures in GitHub Actions where AfterEach
was failing with resource not found errors.
2025-10-25 22:16:30 +02:00
..