bhaveshamre commented on code in PR #673:
URL: https://github.com/apache/ranger/pull/673#discussion_r2362869422
##########
ugsync/src/test/java/org/apache/ranger/usergroupsync/TestLdapUserGroup.java:
##########
@@ -447,13 +440,15 @@ public void testGroupsWithNoUsers() throws Throwable {
assertEquals(2, sink.getGroupsWithNoUsers());
}
- @After
+ @AfterAll
public void shutdown() throws Exception {
- if (getService().isStarted()) {
+ if (getService() != null && getService().isStarted()) {
getService().shutdown();
}
- if (getLdapServer().isStarted()) {
+ if (getLdapServer() != null && getLdapServer().isStarted()) {
getLdapServer().stop();
}
}
+
+ public static class EmptyExtension implements
org.junit.jupiter.api.extension.Extension {}
Review Comment:
Made the required changes in code.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]