Skip to content

Commit f283b06

Browse files
committed
fix: make sure that ConfigurationServiceProvider is reset
If we decide to go along with this work, we will probably need a JUnit extension to always reset the ConfigurationServiceProvider before and after each test automatically.
1 parent c33cdd1 commit f283b06

File tree

1 file changed

+1
-0
lines changed
  • operator-framework-core/src/test/java/io/javaoperatorsdk/operator/processing

1 file changed

+1
-0
lines changed

operator-framework-core/src/test/java/io/javaoperatorsdk/operator/processing/ControllerTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ void crdShouldNotBeCheckedForCustomResourcesIfDisabled() {
5050

5151
@Test
5252
void crdShouldBeCheckedForCustomResourcesByDefault() {
53+
ConfigurationServiceProvider.reset();
5354
final var client = MockKubernetesClient.client(TestCustomResource.class);
5455
final var reconciler = mock(Reconciler.class);
5556
final var configuration = mock(ControllerConfiguration.class);

0 commit comments

Comments
 (0)