You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2021/09/01 18:35:07 UTC

[GitHub] [nifi] MikeThomsen commented on a change in pull request #5332: NIFI-9080 Converted nifi-commons to use JUnit 5.

MikeThomsen commented on a change in pull request #5332:
URL: https://github.com/apache/nifi/pull/5332#discussion_r700467021



##########
File path: nifi-commons/nifi-security-utils/src/test/groovy/org/apache/nifi/security/util/crypto/HashServiceTest.groovy
##########
@@ -387,13 +367,13 @@ class HashServiceTest extends GroovyTestCase {
     }
 
     @Test
-    void testShouldHashValueFromStream() throws Exception {
+    void testShouldHashValueFromStream(@TempDir Path temporaryFolder) throws Exception {
         // Arrange
 
         // No command-line md2sum tool available
         def algorithms = HashAlgorithm.values() - HashAlgorithm.MD2
 
-        File inputFile = temporaryFolder.newFile()
+        File inputFile = Files.createFile(temporaryFolder.resolve("test-${System.currentTimeMillis()}".toString())).toFile()

Review comment:
       Done.




-- 
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: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org