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>
  • Loading branch information
Rob Stryker committed Dec 4, 2024
1 parent 4a3ee4d commit 4a22c8e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10737,11 +10737,13 @@ public void run() {
}
};
Thread thread = new Thread(search);
long start = System.currentTimeMillis();
long maxEnd = start + 20000;
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.currentTimeMillis() < maxEnd) {
Thread.sleep(10);
}
deleteProject(javaProject);
Expand Down

0 comments on commit 4a22c8e

Please sign in to comment.