Browse Source

Configure Semaphore used in TestRequestLog to be fair

Bug: 528187
Change-Id: I26c94ad7f802fc1dbe72d63a7ea346dc6e19ff94
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-4.11
Matthias Sohn 7 years ago
parent
commit
152d5e2a14
  1. 2
      org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/TestRequestLog.java

2
org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/TestRequestLog.java

@ -63,7 +63,7 @@ class TestRequestLog extends HandlerWrapper {
private final List<AccessEvent> events = new ArrayList<>(); private final List<AccessEvent> events = new ArrayList<>();
private final Semaphore active = new Semaphore(MAX); private final Semaphore active = new Semaphore(MAX, true);
/** Reset the log back to its original empty state. */ /** Reset the log back to its original empty state. */
void clear() { void clear() {

Loading…
Cancel
Save