diff --git a/app/server/appsmith-server/src/test/java/com/appsmith/server/solutions/ce/ActionExecutionSolutionCETest.java b/app/server/appsmith-server/src/test/java/com/appsmith/server/solutions/ce/ActionExecutionSolutionCETest.java index 306012b752bc..e8bb6bc39db5 100644 --- a/app/server/appsmith-server/src/test/java/com/appsmith/server/solutions/ce/ActionExecutionSolutionCETest.java +++ b/app/server/appsmith-server/src/test/java/com/appsmith/server/solutions/ce/ActionExecutionSolutionCETest.java @@ -727,9 +727,11 @@ public void checkRecoveryFromStaleConnections() { Mockito.when(pluginExecutorHelper.getPluginExecutor(any())).thenReturn(Mono.just(pluginExecutor)); Mockito.when(pluginExecutor.executeParameterizedWithMetrics(any(), any(), any(), any(), any())) - .thenThrow(new StaleConnectionException()); + .thenThrow(new StaleConnectionException()) + .thenReturn(Mono.just(mockResult)); Mockito.when(pluginExecutor.executeParameterizedWithMetricsAndFlags(any(), any(), any(), any(), any(), any())) - .thenThrow(new StaleConnectionException()); + .thenThrow(new StaleConnectionException()) + .thenReturn(Mono.just(mockResult)); Mockito.when(pluginExecutor.datasourceCreate(any())).thenReturn(Mono.empty()); Mockito.when(pluginExecutor.getHintMessages(any(), any())) .thenReturn(Mono.zip(Mono.just(new HashSet<>()), Mono.just(new HashSet<>())));