Commit 5dce7bd
committed
EmbeddedHeadersJsonMessageMapperTests: race condition
The `EmbeddedHeadersJsonMessageMapperTests.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 `EmbeddedHeadersJsonMessageMapper.toMessage()`1 parent d60fc95 commit 5dce7bd
File tree
1 file changed
+4
-1
lines changed- spring-integration-core/src/test/java/org/springframework/integration/support/json
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | | - | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
0 commit comments