Skip to content

fix(tests): improve resource reconciliation and cleanup logic#827

Merged
jakobmoellerdev merged 1 commit into
open-component-model:mainfrom
jakobmoellerdev:fix-controller-unit-race
Sep 8, 2025
Merged

fix(tests): improve resource reconciliation and cleanup logic#827
jakobmoellerdev merged 1 commit into
open-component-model:mainfrom
jakobmoellerdev:fix-controller-unit-race

Conversation

@jakobmoellerdev

Copy link
Copy Markdown
Member

What this PR does / why we need it

  • Replaced duplicated cleanup steps in tests with DeferCleanup for consistent teardown.
  • Introduced NamespaceForTest function to streamline namespace creation in tests.
  • Removed unused methods GetNamespaced and Get from utilities.
  • Centralized default timeout configuration for Kubernetes operations.

Which issue(s) this PR fixes

Before this, there could be side effects due to shared pointers between tests. this was now fixed

@jakobmoellerdev jakobmoellerdev requested a review from a team as a code owner September 8, 2025 17:29
- Replaced duplicated cleanup steps in tests with `DeferCleanup` for consistent teardown.
- Introduced `NamespaceForTest` function to streamline namespace creation in tests.
- Removed unused methods `GetNamespaced` and `Get` from utilities.
- Centralized default timeout configuration for Kubernetes operations.

Before this, there could be side effects due to shared pointers between tests. this was now fixed

Signed-off-by: Jakob Möller <jakob.moeller@sap.com>
@jakobmoellerdev jakobmoellerdev force-pushed the fix-controller-unit-race branch from 2b85d15 to 319711e Compare September 8, 2025 17:32
@jakobmoellerdev jakobmoellerdev merged commit 68a9a49 into open-component-model:main Sep 8, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants