stataru8 commented on code in PR #529:
URL: https://github.com/apache/camel-karaf/pull/529#discussion_r1803537482


##########
tests/camel-integration-test/src/main/java/org/apache/karaf/camel/itests/AbstractCamelRouteITest.java:
##########
@@ -197,40 +221,95 @@ private static Option[] updatePorts(Option[] options) {
         return options;
     }
 
+    /**
+     * @return the options provided by the external resources.
+     */
     @NotNull
     private static Option[] getExternalResourceOptions() {
         return 
PaxExamWithExternalResource.systemProperties().entrySet().stream()
                 .map(e -> 
CoreOptions.systemProperty(e.getKey()).value(e.getValue()))
                 .toArray(Option[]::new);
     }
 
+    /**
+     * Returns the timeout in milliseconds for the test, corresponding to the 
value of the
+     * {@link CamelKarafTestHint#timeout()} annotation multiplied by one 
thousand.
+     * @return the timeout in milliseconds for the test
+     */
+    private long timeoutInMillis() {
+        return 
getCamelKarafTestHint().map(CamelKarafTestHint::timeout).orElse(DEFAULT_TIMEOUT)
 * 1_000L;

Review Comment:
   ```suggestion
           return 
TimeUnit.SECONDS.toMillis(getCamelKarafTestHint().map(CamelKarafTestHint::timeout).orElse(DEFAULT_TIMEOUT));
   ```



-- 
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]

Reply via email to