HDDS-1533. JVM exit on TestHddsDatanodeService

Closes #859
This commit is contained in:
Mukul Kumar Singh 2019-05-28 14:18:25 +02:00 committed by Márton Elek
parent 4a692bc3be
commit 9f0d3412f8
No known key found for this signature in database
GPG Key ID: D51EA8F00EE79B28

View File

@ -65,13 +65,13 @@ public void tearDown() {
public void testStartup() throws IOException {
service = HddsDatanodeService.createHddsDatanodeService(args);
service.start(conf);
service.join();
assertNotNull(service.getDatanodeDetails());
assertNotNull(service.getDatanodeDetails().getHostName());
assertFalse(service.getDatanodeStateMachine().isDaemonStopped());
service.stop();
service.join();
service.close();
}