Commit 37f5cf1
EmbeddedJsonHeadersMessageMapperTests: race condition
The `EmbeddedJsonHeadersMessageMapperTests.testEmbedSome` does not embed a `timestamp` header.
To see that in action, add a short `Thread.sleep(2);` between
`encode` and `decode` operations.
Otherwise, there is no guarantee that the system clock might not produce the same timestamp
for a new message in the `EmbeddedJsonHeadersMessageMapper.toMessage()`
(cherry picked from commit 90b0555)1 parent 8d0970b commit 37f5cf1
File tree
1 file changed
+2
-0
lines changed- spring-integration-core/src/test/java/org/springframework/integration/support/json
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
0 commit comments