HADOOP-18118. [Follow on] Fix test failure in TestHttpServer (#4900)

Signed-off-by: Erik Krogen <xkrogen@apache.org>
This commit is contained in:
GuoPhilipse 2022-09-20 00:10:00 +08:00 committed by GitHub
parent 30c36ef25a
commit 620dd37712
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -747,7 +747,10 @@ public void testBacklogSize() throws Exception
public void testBacklogSize2() throws Exception public void testBacklogSize2() throws Exception
{ {
Configuration conf = new Configuration(); Configuration conf = new Configuration();
assertEquals(500, conf.get(HttpServer2.HTTP_SOCKET_BACKLOG_SIZE_KEY)); HttpServer2 srv = createServer("test", conf);
List<ServerConnector> listeners = srv.getListeners();
ServerConnector listener = (ServerConnector)listeners.get(0);
assertEquals(500, listener.getAcceptQueueSize());
} }
@Test @Test