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 <stryker@redhat.com>

Cleanup

Signed-off-by: Rob Stryker <stryker@redhat.com>
  • Loading branch information
Rob Stryker committed Dec 6, 2024
1 parent c002247 commit 96c02ff
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 96c02ff

Please sign in to comment.