KhyatiVaghamshi commented on code in PR #23388:
URL: https://github.com/apache/kafka/pull/23388#discussion_r4086773345
##########
clients/src/test/java/org/apache/kafka/common/security/oauthbearer/internals/secured/OAuthBearerTest.java:
##########
@@ -236,7 +242,7 @@ protected JwtConsumer jwtConsumer(PublicKey publicKey) {
}
protected File generatePrivateKey(PrivateKey privateKey) throws
IOException {
- File file = File.createTempFile("private-", ".key");
+ File file = Files.createFile(tempDir.resolve("private-" +
System.nanoTime() + ".key")).toFile();
Review Comment:
Thanks, Addressed!
--
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]