Commit f276af9
committed
Fix another
There is no guarantee which message would reach the service first when we use `asyncConvertSendAndReceive()`.
* Add `config.longProcessEnteredLatch` to wait before sending the second (fourth in our case) message
until the long-running process against the first (third in our case) message has been started.LockRequestHandlerAdviceTests race condition1 parent 41e2b87 commit f276af9
File tree
1 file changed
+7
-0
lines changed- spring-integration-core/src/test/java/org/springframework/integration/handler/advice
1 file changed
+7
-0
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
93 | 97 | | |
94 | 98 | | |
95 | 99 | | |
| |||
130 | 134 | | |
131 | 135 | | |
132 | 136 | | |
| 137 | + | |
| 138 | + | |
133 | 139 | | |
134 | 140 | | |
135 | 141 | | |
| |||
138 | 144 | | |
139 | 145 | | |
140 | 146 | | |
| 147 | + | |
141 | 148 | | |
142 | 149 | | |
143 | 150 | | |
| |||
0 commit comments