HADOOP-12655. TestHttpServer.testBindAddress bind port range is wider than expected. (Wei-Chiu Chuang via stevel)
This commit is contained in:
parent
ccd2be99cc
commit
83932ced71
|
@ -18,6 +18,8 @@ Release 2.9.0 - UNRELEASED
|
||||||
HADOOP-12663. Remove Hard-Coded Values From FileSystem.java.
|
HADOOP-12663. Remove Hard-Coded Values From FileSystem.java.
|
||||||
(BELUGA BEHR via stevel)
|
(BELUGA BEHR via stevel)
|
||||||
|
|
||||||
|
HADOOP-12655. TestHttpServer.testBindAddress bind port range is wider
|
||||||
|
than expected. (Wei-Chiu Chuang via stevel)
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
|
||||||
|
|
|
@ -534,9 +534,6 @@ public class TestHttpServer extends HttpServerFunctionalTest {
|
||||||
assertTrue(boundPort != 0); // ephemeral should now return bound port
|
assertTrue(boundPort != 0); // ephemeral should now return bound port
|
||||||
} else if (findPort) {
|
} else if (findPort) {
|
||||||
assertTrue(boundPort > port);
|
assertTrue(boundPort > port);
|
||||||
// allow a little wiggle room to prevent random test failures if
|
|
||||||
// some consecutive ports are already in use
|
|
||||||
assertTrue(boundPort - port < 8);
|
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
server.stop();
|
server.stop();
|
||||||
|
|
Loading…
Reference in New Issue