Skip to content

Commit 6746508

Browse files
committed
Make more @RetryingTest in the AbstractTxTimeoutMessageStoreTests
1 parent 3e61fcd commit 6746508

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/store/channel/AbstractTxTimeoutMessageStoreTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public void test() throws InterruptedException {
132132
}
133133

134134
@RetryingTest(10)
135-
public void testInt2993IdCacheConcurrency() throws InterruptedException, ExecutionException {
135+
public void idCacheConcurrency() throws InterruptedException, ExecutionException {
136136
final String groupId = "testInt2993Group";
137137
for (int i = 0; i < 100; i++) {
138138
this.jdbcChannelMessageStore.addMessageToGroup(groupId, new GenericMessage<>("testInt2993Message"));
@@ -179,8 +179,8 @@ public void testInt2993IdCacheConcurrency() throws InterruptedException, Executi
179179
assertThat(executorService.awaitTermination(10, TimeUnit.SECONDS)).isTrue();
180180
}
181181

182-
@Test
183-
public void testInt3181ConcurrentPolling() throws InterruptedException {
182+
@RetryingTest(10)
183+
public void concurrentPolling() throws InterruptedException {
184184
for (int i = 0; i < 10; i++) {
185185
this.first.send(new GenericMessage<Object>("test"));
186186
}
@@ -195,7 +195,7 @@ public void testMessageSequenceColumn() throws InterruptedException {
195195
JdbcTemplate jdbcTemplate = new JdbcTemplate(this.dataSource);
196196
String messageGroup = "TEST_MESSAGE_GROUP";
197197
this.jdbcChannelMessageStore.addMessageToGroup(messageGroup, new GenericMessage<Object>("foo"));
198-
// The simple sleep to to be sure that messages are stored with different 'CREATED_DATE'
198+
// The simple sleep to be sure that messages are stored with different 'CREATED_DATE'
199199
Thread.sleep(10);
200200
this.jdbcChannelMessageStore.addMessageToGroup(messageGroup, new GenericMessage<Object>("bar"));
201201

0 commit comments

Comments
 (0)