You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/util/TestYarnVersionInfo.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -40,11 +40,11 @@ public void testVersionInfoGenerated() throws IOException {
40
40
// make sure they aren't Unknown
41
41
assertTrue("getVersion returned Unknown", !YarnVersionInfo.getVersion().equals("Unknown"));
42
42
assertTrue("getUser returned Unknown", !YarnVersionInfo.getUser().equals("Unknown"));
43
-
assertTrue("getUrl returned Unknown", !YarnVersionInfo.getUrl().equals("Unknown"));
44
43
assertTrue("getSrcChecksum returned Unknown", !YarnVersionInfo.getSrcChecksum().equals("Unknown"));
45
44
46
45
// these could be Unknown if the VersionInfo generated from code not in svn or git
47
46
// so just check that they return something
47
+
assertNotNull("getUrl returned null", YarnVersionInfo.getUrl());
48
48
assertNotNull("getRevision returned null", YarnVersionInfo.getRevision());
49
49
assertNotNull("getBranch returned null", YarnVersionInfo.getBranch());
0 commit comments