Commit b341a4e
committed
Fix flaky DefaultAcknowledgementSetManagerTests.testExpirations
Move the monitor size assertion into the await().untilAsserted() block.
The assertion was placed after Thread.sleep() but before await(),
assuming the cleanup thread had already run. Under CI load, the cleanup
may not have completed in time, causing intermittent failures.
Signed-off-by: Sotaro Hikita <bering1814@gmail.com>1 parent cf682e7 commit b341a4e
File tree
1 file changed
+3
-3
lines changed- data-prepper-core/src/test/java/org/opensearch/dataprepper/core/acknowledgements
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | | - | |
| 112 | + | |
114 | 113 | | |
115 | 114 | | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
0 commit comments