From e7e475fb7f4e4a7caa6d1d9fd391bc6a96f51aac Mon Sep 17 00:00:00 2001 From: mustard Date: Wed, 6 Nov 2024 23:01:49 +0800 Subject: [PATCH] [tests] fix JetBrains warmup integration test --- test/tests/ide/jetbrains/warmup-indexing.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tests/ide/jetbrains/warmup-indexing.sh b/test/tests/ide/jetbrains/warmup-indexing.sh index ceaab40845223e..8bd7ee77ca7f70 100755 --- a/test/tests/ide/jetbrains/warmup-indexing.sh +++ b/test/tests/ide/jetbrains/warmup-indexing.sh @@ -4,7 +4,7 @@ # See License.AGPL.txt in the project root for license information. # This script is used to test JetBrains prebuild warmup indexing (search warmup-indexing.sh in codebase) -# It will get the last indexing json file (scan type FULL_ON_PROJECT_OPEN) +# It will get the last indexing json file (scan reason `On project open`) # and check if the scheduled indexing count is greater than a specified threshold # # `exit 0` means JetBrains IDEs no need to indexing again @@ -19,7 +19,7 @@ JsonFiles=$(find "$ProjectIndexingFolder" -type f -name "*.json") FilteredJsonFiles=() for jsonFile in $JsonFiles; do - if jq -e '.projectIndexingActivityHistory.times.scanningType == "FULL_ON_PROJECT_OPEN"' "$jsonFile" > /dev/null; then + if jq -e '.projectIndexingActivityHistory.times.scanningReason == "On project open"' "$jsonFile" > /dev/null; then FilteredJsonFiles+=("$jsonFile") fi done