Skip to content

Commit 6ce3a7e

Browse files
committed
retry
1 parent b1e03f3 commit 6ce3a7e

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/test/kotlin/com/emberjs/gts/GtsFileTest.kt

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,13 @@ class GtsFileTest : BasePlatformTestCase() {
5757
""".trimIndent()
5858
myFixture.configureByText(GjsFileType.INSTANCE, gts)
5959
myFixture.enableInspections(ES6UnusedImportsInspection(), JSUnusedLocalSymbolsInspection(), JSUnusedGlobalSymbolsInspection())
60-
CodeInsightTestFixtureImpl.ensureIndexesUpToDate(project)
60+
while (true) {
61+
try {
62+
CodeInsightTestFixtureImpl.ensureIndexesUpToDate(project)
63+
break
64+
} catch (e: Exception) {}
65+
}
66+
6167
val highlighting = myFixture.doHighlighting()
6268
val unusedConstants = highlighting.filter { it.description?.startsWith("Unused constant") == true }
6369
TestCase.assertEquals(unusedConstants.toString(), 2, unusedConstants.size)
@@ -96,7 +102,12 @@ class GtsFileTest : BasePlatformTestCase() {
96102
""".trimIndent()
97103
myFixture.configureByText(GtsFileType.INSTANCE, gts)
98104
myFixture.enableInspections(ES6UnusedImportsInspection(), JSUnusedLocalSymbolsInspection(), JSUnusedGlobalSymbolsInspection())
99-
CodeInsightTestFixtureImpl.ensureIndexesUpToDate(project)
105+
while (true) {
106+
try {
107+
CodeInsightTestFixtureImpl.ensureIndexesUpToDate(project)
108+
break
109+
} catch (e: Exception) {}
110+
}
100111
val highlighting = myFixture.doHighlighting()
101112
System.out.println(highlighting)
102113
val unusedConstants = highlighting.filter { it.description?.startsWith("Unused constant") == true }

0 commit comments

Comments
 (0)