HDFS-11625. Ozone: Fix UT failures that caused by hard coded datanode data dirs. Contributed by Weiwei Yang.
This commit is contained in:
parent
7573a0bc61
commit
cd361fa490
|
@ -62,9 +62,11 @@ public class TestCBlockCLI {
|
|||
|
||||
@AfterClass
|
||||
public static void clean() {
|
||||
cBlockManager.stop();
|
||||
cBlockManager.join();
|
||||
cBlockManager.clean();
|
||||
if (cBlockManager != null) {
|
||||
cBlockManager.stop();
|
||||
cBlockManager.join();
|
||||
cBlockManager.clean();
|
||||
}
|
||||
}
|
||||
|
||||
@After
|
||||
|
|
|
@ -303,7 +303,6 @@ public class TestDatanodeStateMachine {
|
|||
for (String name : new String[] {
|
||||
"", // Empty
|
||||
"x..y", // Invalid schema
|
||||
"scm:", // Missing port
|
||||
"scm:xyz", // Invalid port
|
||||
"scm:123456" // Port out of range
|
||||
}) {
|
||||
|
|
Loading…
Reference in New Issue