Skip to content

Commit

Permalink
Added extra wait time for two randomly failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveeclipse committed Aug 5, 2024
1 parent e2040a0 commit 8775137
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5782,6 +5782,13 @@ public void testUnknownElements1() throws CoreException {
classpath[1] = src1;
project.setRawClasspath(classpath, null);

try {
Thread.sleep(500);
} catch (InterruptedException e) {
e.printStackTrace();
}
waitForManualRefresh();

// check that .classpath has correct content
String contents = new String (org.eclipse.jdt.internal.core.util.Util.getResourceContentsAsCharArray(getFile("/P/.classpath")));
assertSourceEquals(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2486,8 +2486,12 @@ public void run(IProgressMonitor monitor) throws CoreException {
}
},
null);
try {
Thread.sleep(500);
} catch (InterruptedException e) {
e.printStackTrace();
}
waitForManualRefresh();
waitForAutoBuild();
IPackageFragmentRoot root = getPackageFragmentRoot("P", "");
assertElementsEqual(
"Unexpected children size in 'P' default source folder",
Expand Down

0 comments on commit 8775137

Please sign in to comment.