summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.junit.http/src
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2018-02-21 22:50:04 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2018-02-22 23:16:42 +0100
commit152d5e2a14f2c03d55776154f67fab3f408a57e0 (patch)
tree5e02b4c050377b874079437a7d8870d14b3ee151 /org.eclipse.jgit.junit.http/src
parent520f3af7b4e321459d644373cf7bac2ef104e434 (diff)
downloadjgit-152d5e2a14f2c03d55776154f67fab3f408a57e0.tar.gz
jgit-152d5e2a14f2c03d55776154f67fab3f408a57e0.zip
Configure Semaphore used in TestRequestLog to be fair
Bug: 528187 Change-Id: I26c94ad7f802fc1dbe72d63a7ea346dc6e19ff94 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.junit.http/src')
-rw-r--r--org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/TestRequestLog.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/TestRequestLog.java b/org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/TestRequestLog.java
index 112c197b2d..c1abe37d96 100644
--- a/org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/TestRequestLog.java
+++ b/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 Semaphore active = new Semaphore(MAX);
+ private final Semaphore active = new Semaphore(MAX, true);
/** Reset the log back to its original empty state. */
void clear() {