diff --git a/medium-tests/src/test/java/mediumtest/analysis/AnalysisMediumTests.java b/medium-tests/src/test/java/mediumtest/analysis/AnalysisMediumTests.java index d24dd94d7c..b19e24b9da 100644 --- a/medium-tests/src/test/java/mediumtest/analysis/AnalysisMediumTests.java +++ b/medium-tests/src/test/java/mediumtest/analysis/AnalysisMediumTests.java @@ -756,9 +756,9 @@ void it_should_unload_rules_cache_on_config_scope_closed(@TempDir Path baseDir) // analyse files to warmup caches var analysisId1 = UUID.randomUUID(); - backend.getAnalysisService().analyzeFiles(new AnalyzeFilesParams(CONFIG_SCOPE_ID, analysisId1, List.of(fileUri), Map.of(), System.currentTimeMillis())).join(); + backend.getAnalysisService().analyzeFilesAndTrack(new AnalyzeFilesAndTrackParams(CONFIG_SCOPE_ID, analysisId1, List.of(fileUri), Map.of(),true, System.currentTimeMillis())).join(); var analysisId2 = UUID.randomUUID(); - backend.getAnalysisService().analyzeFiles(new AnalyzeFilesParams(configScope2, analysisId2, List.of(fileUri2), Map.of(), System.currentTimeMillis())).join(); + backend.getAnalysisService().analyzeFilesAndTrack(new AnalyzeFilesAndTrackParams(configScope2, analysisId2, List.of(fileUri2), Map.of(), true, System.currentTimeMillis())).join(); // unload one of the projects backend.getConfigurationService().didRemoveConfigurationScope(new DidRemoveConfigurationScopeParams(configScope2)); @@ -829,9 +829,9 @@ void it_should_not_unload_rules_cache_on_config_scope_closed_if_another_config_s // analyse files to warmup caches var analysisId1 = UUID.randomUUID(); - backend.getAnalysisService().analyzeFiles(new AnalyzeFilesParams(CONFIG_SCOPE_ID, analysisId1, List.of(fileUri), Map.of(), System.currentTimeMillis())).join(); + backend.getAnalysisService().analyzeFilesAndTrack(new AnalyzeFilesAndTrackParams(CONFIG_SCOPE_ID, analysisId1, List.of(fileUri), Map.of(), true, System.currentTimeMillis())).join(); var analysisId2 = UUID.randomUUID(); - backend.getAnalysisService().analyzeFiles(new AnalyzeFilesParams(configScope2, analysisId2, List.of(fileUri2), Map.of(), System.currentTimeMillis())).join(); + backend.getAnalysisService().analyzeFilesAndTrack(new AnalyzeFilesAndTrackParams(configScope2, analysisId2, List.of(fileUri2), Map.of(), true, System.currentTimeMillis())).join(); // unload one of the projects backend.getConfigurationService().didRemoveConfigurationScope(new DidRemoveConfigurationScopeParams(configScope2));