JiriOndrusek commented on a change in pull request #2254:
URL: https://github.com/apache/camel-quarkus/pull/2254#discussion_r576777340
##########
File path:
integration-tests/nitrite/src/test/java/org/apache/camel/quarkus/component/nitrite/it/NitriteTest.java
##########
@@ -64,12 +98,15 @@ public void repositoryClass() throws
CloneNotSupportedException {
/* Insert Leonard */
RestAssured.given()
.contentType(ContentType.JSON)
+ .queryParam("mappable", mappable)
.body(leonard)
.post("/nitrite/repositoryClass")
.then()
.statusCode(200)
.body("name", is("Leonard"));
- RestAssured.get("/nitrite/repositoryClass")
+ RestAssured.given()
+ .queryParam("mappable", mappable)
+ .post("/nitrite/getRepositoryClass")
Review comment:
@ppalaga I think, that it is not necessary. Value is written into
nitrite with previous post, and nitrite component waits until nitrite finishes:
https://github.com/apache/camel/blob/master/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/NitriteConsumer.java#L71
Then reading should work even without wait. WDYT? (to be sure, I also tried
to "wait" in nitrite during insert, control is not released to camel component)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]