Skip to content

Commit c389da1

Browse files
committed
fix ut
1 parent 0c3870d commit c389da1

File tree

1 file changed

+4
-4
lines changed
  • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-web-proxy/src/test/java/org/apache/hadoop/yarn/server/webproxy

1 file changed

+4
-4
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-web-proxy/src/test/java/org/apache/hadoop/yarn/server/webproxy/TestWebAppProxyServlet.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,8 @@ void testAppReportForEmptyTrackingUrl() throws Exception {
365365
String appAddressInRm =
366366
WebAppUtils.getResolvedRMWebAppURLWithScheme(configuration) +
367367
"/cluster" + "/app/" + app.toString();
368-
assertEquals("Webapp proxy servlet should have redirected to RM",
369-
proxyConn.getURL().toString(), appAddressInRm);
368+
assertEquals(proxyConn.getURL().toString(), appAddressInRm,
369+
"Webapp proxy servlet should have redirected to RM");
370370

371371
//set AHS_ENABLED = true to simulate getting the app report from AHS
372372
configuration.setBoolean(YarnConfiguration.APPLICATION_HISTORY_ENABLED,
@@ -384,8 +384,8 @@ void testAppReportForEmptyTrackingUrl() throws Exception {
384384
String appAddressInAhs =
385385
WebAppUtils.getHttpSchemePrefix(configuration) + WebAppUtils.getAHSWebAppURLWithoutScheme(
386386
configuration) + "/applicationhistory" + "/app/" + app.toString();
387-
assertEquals("Webapp proxy servlet should have redirected to AHS",
388-
proxyConn.getURL().toString(), appAddressInAhs);
387+
assertEquals(proxyConn.getURL().toString(), appAddressInAhs,
388+
"Webapp proxy servlet should have redirected to AHS");
389389
} finally {
390390
proxy.close();
391391
}

0 commit comments

Comments
 (0)