Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
Signed-off-by: Attila Mészáros <[email protected]>
  • Loading branch information
csviri committed Feb 5, 2025
1 parent 9616c74 commit 8681ddc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,12 @@ void callsCleanupOnWorkflowWhenHasCleanerAndReconcilerIsNotCleaner(boolean recon
boolean workflowIsCleaner,
boolean isExplicitWorkflowInvocation,
boolean workflowCleanerExecuted) throws Exception {
Reconciler reconciler = mock(Reconciler.class);

Reconciler reconciler;
if (reconcilerIsCleaner) {
reconciler = mock(Reconciler.class, withSettings().extraInterfaces(Cleaner.class));
} else {
reconciler = mock(Reconciler.class);
}

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

0 comments on commit 8681ddc

Please sign in to comment.