Browse Source

Configure Semaphore used in TestRequestLog to be fair

Bug: 528187
Change-Id: I26c94ad7f802fc1dbe72d63a7ea346dc6e19ff94
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tags/v4.11.0.201803080745-r
Matthias Sohn 6 years ago
parent
commit
152d5e2a14

+ 1
- 1
org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/TestRequestLog.java View File

@@ -63,7 +63,7 @@ class TestRequestLog extends HandlerWrapper {

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. */
void clear() {

Loading…
Cancel
Save