Add missing files to previous merge of remote-tracking branch origin/jetty-9.4.x into jetty-10.0.x

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
This commit is contained in:
Ludovic Orban 2021-01-12 16:31:13 +01:00
parent 058a488c30
commit e9832492b3
2 changed files with 11 additions and 16 deletions

View File

@ -1,19 +1,14 @@
//
// ========================================================================
// Copyright (c) 1995-2020 Mort Bay Consulting Pty Ltd and others.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// and Apache License v2.0 which accompanies this distribution.
// ========================================================================
// Copyright (c) 1995-2020 Mort Bay Consulting Pty Ltd and others.
//
// The Eclipse Public License is available at
// http://www.eclipse.org/legal/epl-v10.html
// This program and the accompanying materials are made available under the
// terms of the Eclipse Public License v. 2.0 which is available at
// https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
// which is available at https://www.apache.org/licenses/LICENSE-2.0.
//
// The Apache License v2.0 is available at
// http://www.opensource.org/licenses/apache2.0.php
//
// You may elect to redistribute this code under either of these licenses.
// ========================================================================
// SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
// ========================================================================
//
package org.eclipse.jetty.http2.client.http;

View File

@ -224,7 +224,7 @@ public class PoolTest
Pool<CloseableHolder> pool = factory.getPool(2);
// Reserve an entry
Pool<CloseableHolder>.Entry e1 = pool.reserve();
Pool<CloseableHolder>.Entry e1 = pool.reserve(-1);
assertThat(pool.size(), is(1));
assertThat(pool.getReservedCount(), is(1));
assertThat(pool.getIdleCount(), is(0));
@ -245,7 +245,7 @@ public class PoolTest
assertThat(pool.getInUseCount(), is(0));
// Reserve another entry
Pool<CloseableHolder>.Entry e2 = pool.reserve();
Pool<CloseableHolder>.Entry e2 = pool.reserve(-1);
assertThat(pool.size(), is(2));
assertThat(pool.getReservedCount(), is(1));
assertThat(pool.getIdleCount(), is(1));
@ -259,7 +259,7 @@ public class PoolTest
assertThat(pool.getInUseCount(), is(0));
// Reserve another entry
Pool<CloseableHolder>.Entry e3 = pool.reserve();
Pool<CloseableHolder>.Entry e3 = pool.reserve(-1);
assertThat(pool.size(), is(2));
assertThat(pool.getReservedCount(), is(1));
assertThat(pool.getIdleCount(), is(1));