vsinghal85 commented on code in PR #4076: URL: https://github.com/apache/gobblin/pull/4076#discussion_r1848018884
########## gobblin-service/src/test/java/org/apache/gobblin/service/modules/orchestration/OrchestratorTest.java: ########## @@ -370,16 +376,18 @@ public void onAddSpecForScheduledFlow() throws IOException { FlowSpec flowSpec = FlowSpec.builder().withConfig(config).build(); AddSpecResponse response = new AddSpecResponse<>(new Object()); Mockito.when(specCompiler.onAddSpec(flowSpec)).thenReturn(response); - AddSpecResponse addSpecResponse = dagMgrNotFlowLaunchHandlerBasedOrchestrator.onAddSpec(flowSpec); + AddSpecResponse addSpecResponse = orchestrator.onAddSpec(flowSpec); Assert.assertNotNull(addSpecResponse); + // Verifying that for scheduled flow isLeaseAcquirable is not called + Mockito.verify(dagManagementStateStore, Mockito.times(0)).existsCurrentlyLaunchingSimilarFlow(anyString(), anyString(), anyLong()); Review Comment: Sure, Thanks for pointing out, updated -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@gobblin.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org