From 152d5e2a14f2c03d55776154f67fab3f408a57e0 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Wed, 21 Feb 2018 22:50:04 +0100 Subject: [PATCH] Configure Semaphore used in TestRequestLog to be fair Bug: 528187 Change-Id: I26c94ad7f802fc1dbe72d63a7ea346dc6e19ff94 Signed-off-by: Matthias Sohn --- .../src/org/eclipse/jgit/junit/http/TestRequestLog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 112c197b2..c1abe37d9 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 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() {