Skip to content

Commit beb56dc

Browse files
trancexpressiloveeclipse
authored andcommitted
Wait for indexer at JavaSearchBugsTests2.setUp()
See: eclipse-jdt#421
1 parent 75cdac2 commit beb56dc

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests2.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ protected void setUp() throws Exception {
8181
super.setUp();
8282
this.resultCollector = new TestCollector();
8383
this.resultCollector.showAccuracy(true);
84+
waitUntilIndexesReady();
8485
}
8586

8687
/**
@@ -1868,7 +1869,7 @@ public void testBug381392() throws CoreException {
18681869
if (egit != null) deleteProject(egit);
18691870
}
18701871
}
1871-
public void testBug469965_0001() throws CoreException {
1872+
public void testBug469965_0001() throws Exception {
18721873
try {
18731874

18741875
IJavaProject project = createJavaProject("P", new String[] {"src"}, new String[] { "/P/lib469965.jar", "JCL18_LIB" }, "bin", "1.8");
@@ -1913,11 +1914,7 @@ public void testBug469965_0001() throws CoreException {
19131914
"lib469965.jar void f3.<anonymous>.goo() EXACT_MATCH\n" +
19141915
"lib469965.jar void f3.<anonymous>.goo() EXACT_MATCH\n" +
19151916
"lib469965.jar void f3.<anonymous>.goo() EXACT_MATCH");
1916-
} catch (IOException e) {
1917-
// TODO Auto-generated catch block
1918-
e.printStackTrace();
1919-
}
1920-
finally {
1917+
} finally {
19211918
deleteProject("P");
19221919
}
19231920
}

0 commit comments

Comments
 (0)