Skip to content

Commit 70d206b

Browse files
committed
skip tests early
1 parent 98b4b7b commit 70d206b

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDatanodeRegistration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void testDNSLookups() throws Exception {
8585
} catch (UnsupportedOperationException e) {
8686
assumeTrue("Test is skipped because SecurityManager cannot be set (JEP 411)", false);
8787
}
88-
88+
8989
MiniDFSCluster cluster = null;
9090
try {
9191
HdfsConfiguration conf = new HdfsConfiguration();

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/TestCapacitySchedulerAsyncScheduling.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,11 +1104,6 @@ public Boolean answer(InvocationOnMock invocation) throws Exception {
11041104
@Test
11051105
@Timeout(value = 30)
11061106
public void testAsyncScheduleThreadExit() throws Exception {
1107-
// init RM & NM
1108-
final MockRM rm = new MockRM(conf);
1109-
rm.start();
1110-
rm.registerNode("192.168.0.1:1234", 8 * GB);
1111-
rm.drainEvents();
11121107

11131108
// Set no exit security manager to catch System.exit
11141109
SecurityManager originalSecurityManager = System.getSecurityManager();
@@ -1121,6 +1116,12 @@ public void testAsyncScheduleThreadExit() throws Exception {
11211116
"Test is skipped because SecurityManager cannot be set (JEP411)");
11221117
}
11231118

1119+
// init RM & NM
1120+
final MockRM rm = new MockRM(conf);
1121+
rm.start();
1122+
rm.registerNode("192.168.0.1:1234", 8 * GB);
1123+
rm.drainEvents();
1124+
11241125
// test async-scheduling thread exit
11251126
try{
11261127
// set resource calculator to be null to simulate

0 commit comments

Comments
 (0)