lhotari commented on code in PR #25840:
URL: https://github.com/apache/pulsar/pull/25840#discussion_r3274627089
##########
pulsar-functions/worker/src/test/java/org/apache/pulsar/functions/worker/rest/api/v3/AbstractFunctionApiResourceTest.java:
##########
@@ -1020,6 +1020,46 @@ public void testUpdateFunctionWithUrl() throws
IOException {
}
+ @Test
+ public void testUpdateFunctionWithExistingFileUrl() throws IOException {
+ Configurator.setRootLevel(Level.DEBUG);
+
+ String fileLocation =
FutureUtil.class.getProtectionDomain().getCodeSource().getLocation().getPath();
Review Comment:
Why does the test use `FutureUtil.class`? If the intention is to use just
any file, it's better to use a temp file that is removed in test cleanup.
--
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]