Skip to content

Commit 8681ddc

Browse files
committed
improve
Signed-off-by: Attila Mészáros <[email protected]>
1 parent 9616c74 commit 8681ddc

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,12 @@ void callsCleanupOnWorkflowWhenHasCleanerAndReconcilerIsNotCleaner(boolean recon
8888
boolean workflowIsCleaner,
8989
boolean isExplicitWorkflowInvocation,
9090
boolean workflowCleanerExecuted) throws Exception {
91-
Reconciler reconciler = mock(Reconciler.class);
91+
92+
Reconciler reconciler;
9293
if (reconcilerIsCleaner) {
9394
reconciler = mock(Reconciler.class, withSettings().extraInterfaces(Cleaner.class));
95+
} else {
96+
reconciler = mock(Reconciler.class);
9497
}
9598

9699
final var configuration = MockControllerConfiguration.forResource(Secret.class);

0 commit comments

Comments
 (0)