HeartSaVioR commented on a change in pull request #2996: STORM-3376: Set Server 
callback before opening Netty socket, so we do…
URL: https://github.com/apache/storm/pull/2996#discussion_r281015782
 
 

 ##########
 File path: 
storm-server/src/test/java/org/apache/storm/security/auth/workertoken/WorkerTokenTest.java
 ##########
 @@ -85,6 +85,7 @@ public void testBasicGenerateAndAuthorize() {
             WorkerTokenAuthorizer wta = new WorkerTokenAuthorizer(type, 
mockState);
             byte[] signature = wta.getSignedPasswordFor(wt.get_info(), info);
             assertArrayEquals(wt.get_signature(), signature);
+            wta.close();
 
 Review comment:
   Could we replace this with `try-resource`?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to