[ https://issues.apache.org/jira/browse/AMBARI-25596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17240569#comment-17240569 ]
Suraj Naik commented on AMBARI-25596: ------------------------------------- Please review my code. > TestTimelineWebServices.java failing due to address in use > ---------------------------------------------------------- > > Key: AMBARI-25596 > URL: https://issues.apache.org/jira/browse/AMBARI-25596 > Project: Ambari > Issue Type: Bug > Components: ambari-metrics > Reporter: Suraj Naik > Priority: Minor > > Issue: > > {{Running org.apache.ambari.metrics.webapp.TestTimelineWebServicesTests run: > 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.294 sec <<< FAILURE! - > in > org.apache.ambari.metrics.webapp.TestTimelineWebServicestestAbout(org.apache.ambari.metrics.webapp.TestTimelineWebServices) > > Time elapsed: 0.005 sec > <<< ERROR!com.sun.jersey.test.framework.spi.container.TestContainerException: > java.net.BindException: Address already in use > at > org.apache.ambari.metrics.webapp.TestTimelineWebServices.<init>(TestTimelineWebServices.java:77) > Caused by: java.net.BindException: Address already in useat > org.apache.ambari.metrics.webapp.TestTimelineWebServices.<init>(TestTimelineWebServices.java:77) > testGetMetrics(org.apache.ambari.metrics.webapp.TestTimelineWebServices) > Time elapsed: 0.001 sec <<< > ERROR!com.sun.jersey.test.framework.spi.container.TestContainerException: > java.net.BindException: Address already in use > at > org.apache.ambari.metrics.webapp.TestTimelineWebServices.<init>(TestTimelineWebServices.java:77) > Caused by: java.net.BindException: Address already in use > at > org.apache.ambari.metrics.webapp.TestTimelineWebServices.<init>(TestTimelineWebServices.java:77) > Results :Tests in > error:TestTimelineWebServices.<init>:77->JerseyTestBase.<init>:27->JerseyTest.<init>:217->JerseyTest.getContainer:342 > » > TestContainerTestTimelineWebServices.<init>:77->JerseyTestBase.<init>:27->JerseyTest.<init>:217->JerseyTest.getContainer:342 > » TestContainer}} -- This message was sent by Atlassian Jira (v8.3.4#803005)