This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 51bc41740e7 CAMEL-18237: fix incorrect round-to-zero
51bc41740e7 is described below
commit 51bc41740e795ae6e92aaf49885d2203a3b157fb
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Thu Jul 7 05:11:42 2022 +0200
CAMEL-18237: fix incorrect round-to-zero
Resequence definition must use precise time definition, otherwise the
milliseconds get rounded to zero which causes tests such as the ones
in ResequenceStreamNotIgnoreInvalidExchangesTest to fail.
Ref: cf65ab21dbe3cfa598fcb83e7397c5c39718b3a4
---
.../src/main/java/org/apache/camel/model/ResequenceDefinition.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/core/camel-core-model/src/main/java/org/apache/camel/model/ResequenceDefinition.java
b/core/camel-core-model/src/main/java/org/apache/camel/model/ResequenceDefinition.java
index 36df31489e5..3d77954f4e5 100644
---
a/core/camel-core-model/src/main/java/org/apache/camel/model/ResequenceDefinition.java
+++
b/core/camel-core-model/src/main/java/org/apache/camel/model/ResequenceDefinition.java
@@ -138,7 +138,7 @@ public class ResequenceDefinition extends
OutputDefinition<ResequenceDefinition>
* @return the builder
*/
public ResequenceDefinition timeout(Duration timeout) {
- return timeout(TimeUtils.printDuration(timeout));
+ return timeout(TimeUtils.printDuration(timeout, true));
}
/**