Skip to content

Commit e8ab8e0

Browse files
authored
[tests] fix JetBrains warmup integration test (#20348)
1 parent e11d09d commit e8ab8e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/tests/ide/jetbrains/warmup-indexing.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# See License.AGPL.txt in the project root for license information.
55

66
# This script is used to test JetBrains prebuild warmup indexing (search warmup-indexing.sh in codebase)
7-
# It will get the last indexing json file (scan type FULL_ON_PROJECT_OPEN)
7+
# It will get the last indexing json file (scan reason `On project open`)
88
# and check if the scheduled indexing count is greater than a specified threshold
99
#
1010
# `exit 0` means JetBrains IDEs no need to indexing again
@@ -19,7 +19,7 @@ JsonFiles=$(find "$ProjectIndexingFolder" -type f -name "*.json")
1919

2020
FilteredJsonFiles=()
2121
for jsonFile in $JsonFiles; do
22-
if jq -e '.projectIndexingActivityHistory.times.scanningType == "FULL_ON_PROJECT_OPEN"' "$jsonFile" > /dev/null; then
22+
if jq -e '.projectIndexingActivityHistory.times.scanningReason == "On project open"' "$jsonFile" > /dev/null; then
2323
FilteredJsonFiles+=("$jsonFile")
2424
fi
2525
done

0 commit comments

Comments
 (0)