Skip to content

Commit

Permalink
testBug261722 Test case never ends if test fails
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <[email protected]>

Cleanup

Signed-off-by: Rob Stryker <[email protected]>
  • Loading branch information
Rob Stryker authored and jukzi committed Dec 12, 2024
1 parent b25d091 commit abe441a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10737,11 +10737,14 @@ public void run() {
}
};
Thread thread = new Thread(search);
long start = System.nanoTime();
long maxEnd = start + 10_000_000_000L;

thread.start();

// Delete project in current thread after being sure that the search
// request was started
while (requestor.count < (MAX/3)) {
while (requestor.count < (MAX/3) && System.nanoTime() < maxEnd) {
Thread.sleep(10);
}
deleteProject(javaProject);
Expand Down

0 comments on commit abe441a

Please sign in to comment.