Configure Semaphore used in TestRequestLog to be fair
Bug: 528187 Change-Id: I26c94ad7f802fc1dbe72d63a7ea346dc6e19ff94 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
parent
520f3af7b4
commit
152d5e2a14
|
@ -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…
Reference in New Issue