From a0ea7b77d5414564ce49d04397a95859ee00d054 Mon Sep 17 00:00:00 2001 From: Kirill Knize Date: Mon, 28 Oct 2024 10:40:49 +0100 Subject: [PATCH] rebase --- .../java/mediumtest/analysis/AnalysisMediumTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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));