Commit fed5324
Fix MQTT event race condition in the Mqttv5BackToBackTests
The `MqttMessageDeliveredEvent` is published in async manner from the MQTT client.
The message could be already consumed and verified, but `MqttMessageDeliveredEvent` is still not there.
* Fix `Mqttv5BackToBackTests.testSimpleMqttv5Interaction()` with an
`await().untilAsserted()` polling for the `MqttMessageDeliveredEvent`
to appear in the list we want to verify.
(cherry picked from commit fbb5b71)1 parent 9efb841 commit fed5324
1 file changed
Lines changed: 4 additions & 2 deletions
File tree
- spring-integration-mqtt/src/test/java/org/springframework/integration/mqtt
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
119 | 123 | | |
120 | | - | |
121 | 124 | | |
122 | | - | |
123 | 125 | | |
124 | 126 | | |
125 | 127 | | |
| |||
0 commit comments