-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Twitter itest doesn't work in native mode #2090
Comments
I've found the problem. The inital delay (https://github.com/apache/camel-quarkus/blob/master/integration-tests/twitter/src/test/java/org/apache/camel/quarkus/component/twitter/CamelTwitterTest.java#L36) is zero in Native mode. @ppalaga @jamesnetherton any ideas why ? |
Injection does not work in native mode. We need to find a different way of passing the initial delay value. How about
|
is this a known issue ? |
It is not an issue, it is by design, AFAIK. |
Another workaround could be to add a rest endpoint to the test app that would return the ConfigProperty value. |
Or even |
@ppalaga Thanks. I will try the |
but is CamelTwitterTest compiled to native ? I thought it were execute as any other test so by the jvm. And I honestly do not see why it should not work |
Just for a record, it works with |
Yes, it could be made to work, for some injection values at least. |
I can see
when running
mvn -U -B -e -fae -V -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn verify -f pom.xml -Dformatter.skip -Dimpsort.skip -Denforcer.skip -Pnative -pl twitter
in integration-tests directory on master branch. The JVM variant works.Log from Native
and log from JVM
The text was updated successfully, but these errors were encountered: