File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
src/test/kotlin/com/emberjs/gts Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments