]> source.dussan.org Git - jgit.git/commitdiff
Configure Semaphore used in TestRequestLog to be fair 09/117909/2
authorMatthias Sohn <matthias.sohn@sap.com>
Wed, 21 Feb 2018 21:50:04 +0000 (22:50 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Thu, 22 Feb 2018 22:16:42 +0000 (23:16 +0100)
Bug: 528187
Change-Id: I26c94ad7f802fc1dbe72d63a7ea346dc6e19ff94
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/TestRequestLog.java

index 112c197b2d43547efca83c9680553010dd18e22d..c1abe37d96ddacbb7dcaabc948427cb2853ec075 100644 (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() {