diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/TestHttpServer.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/TestHttpServer.java index b71610588c..37e3415546 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/TestHttpServer.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/TestHttpServer.java @@ -747,7 +747,10 @@ public void testBacklogSize() throws Exception public void testBacklogSize2() throws Exception { Configuration conf = new Configuration(); - assertEquals(500, conf.get(HttpServer2.HTTP_SOCKET_BACKLOG_SIZE_KEY)); + HttpServer2 srv = createServer("test", conf); + List listeners = srv.getListeners(); + ServerConnector listener = (ServerConnector)listeners.get(0); + assertEquals(500, listener.getAcceptQueueSize()); } @Test