You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The message in the `QueueChannel` appears for consuming a bit earlier
than TX is committed
* Introduce `afterCommitLatch` into the test verify the state
when TX is really committed and data is removed from DB
Copy file name to clipboardExpand all lines: spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/store/JdbcMessageStoreChannelTests-context.xml
Copy file name to clipboardExpand all lines: spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/store/JdbcMessageStoreChannelTests.java
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@
18
18
19
19
importstaticorg.junit.Assert.assertEquals;
20
20
importstaticorg.junit.Assert.assertNotNull;
21
+
importstaticorg.junit.Assert.assertTrue;
21
22
importstaticorg.junit.Assert.fail;
22
23
23
24
importjava.util.List;
@@ -61,7 +62,7 @@ public class JdbcMessageStoreChannelTests {
61
62
privateMessageChannelinput;
62
63
63
64
@Autowired
64
-
privatePollableChanneloutput;
65
+
privateCountDownLatchafterCommitLatch;
65
66
66
67
@Autowired
67
68
privateJdbcMessageStoremessageStore;
@@ -70,6 +71,8 @@ public class JdbcMessageStoreChannelTests {
0 commit comments