@@ -135,7 +135,7 @@ public void extraCleanUp(TestInfo info) {
135
135
public void testStandard () throws Exception {
136
136
try (AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext (StandardConfig .class )) {
137
137
StandardConfig config = ctx .getBean (StandardConfig .class );
138
- assertThat (config .latch .await (10 , TimeUnit .SECONDS )).isTrue ();
138
+ assertThat (config .latch .await (30 , TimeUnit .SECONDS )).isTrue ();
139
139
ctx .getBean (SourcePollingChannelAdapter .class ).stop ();
140
140
List <Integer > sfCalls = config .sessionSources .stream ().limit (17 ).collect (Collectors .toList ());
141
141
assertThat (sfCalls ).containsExactly (1 , 1 , 1 , 2 , 2 , 2 , 3 , 3 , 3 , 1 , 1 , 2 , 2 , 3 , 3 , 1 , 1 );
@@ -153,7 +153,7 @@ public void testStandard() throws Exception {
153
153
public void testFair () throws Exception {
154
154
try (AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext (FairConfig .class )) {
155
155
StandardConfig config = ctx .getBean (StandardConfig .class );
156
- assertThat (config .latch .await (10 , TimeUnit .SECONDS )).isTrue ();
156
+ assertThat (config .latch .await (30 , TimeUnit .SECONDS )).isTrue ();
157
157
ctx .getBean (SourcePollingChannelAdapter .class ).stop ();
158
158
List <Integer > sfCalls = config .sessionSources .stream ().limit (17 ).collect (Collectors .toList ());
159
159
assertThat (sfCalls ).containsExactly (1 , 1 , 2 , 2 , 3 , 3 , 1 , 1 , 2 , 2 , 3 , 3 , 1 , 1 , 2 , 2 , 3 );
@@ -171,7 +171,7 @@ public void testFair() throws Exception {
171
171
public void testVariableLocalDir () throws Exception {
172
172
try (ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext (VariableLocalConfig .class )) {
173
173
StandardConfig config = ctx .getBean (StandardConfig .class );
174
- assertThat (config .latch .await (10 , TimeUnit .SECONDS )).isTrue ();
174
+ assertThat (config .latch .await (30 , TimeUnit .SECONDS )).isTrue ();
175
175
ctx .getBean (SourcePollingChannelAdapter .class ).stop ();
176
176
List <Integer > sfCalls = config .sessionSources .stream ().limit (17 ).collect (Collectors .toList ());
177
177
assertThat (sfCalls ).containsExactly (1 , 1 , 1 , 2 , 2 , 2 , 3 , 3 , 3 , 1 , 1 , 2 , 2 , 3 , 3 , 1 , 1 );
@@ -189,7 +189,7 @@ public void testVariableLocalDir() throws Exception {
189
189
public void testStreaming () throws Exception {
190
190
try (AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext (StreamingConfig .class )) {
191
191
StandardConfig config = ctx .getBean (StreamingConfig .class );
192
- assertThat (config .latch .await (10 , TimeUnit .SECONDS )).isTrue ();
192
+ assertThat (config .latch .await (30 , TimeUnit .SECONDS )).isTrue ();
193
193
ctx .getBean (SourcePollingChannelAdapter .class ).stop ();
194
194
List <Integer > sfCalls = config .sessionSources .stream ().limit (17 ).collect (Collectors .toList ());
195
195
// there's an extra getSession() with this adapter in listFiles
@@ -212,7 +212,7 @@ public void testStreaming() throws Exception {
212
212
public void testFairStreaming () throws Exception {
213
213
try (ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext (FairStreamingConfig .class )) {
214
214
StandardConfig config = ctx .getBean (StandardConfig .class );
215
- assertThat (config .latch .await (10 , TimeUnit .SECONDS )).isTrue ();
215
+ assertThat (config .latch .await (30 , TimeUnit .SECONDS )).isTrue ();
216
216
ctx .getBean (SourcePollingChannelAdapter .class ).stop ();
217
217
List <Integer > sfCalls = config .sessionSources .stream ().limit (17 ).collect (Collectors .toList ());
218
218
assertThat (sfCalls ).containsExactly (1 , 1 , 2 , 2 , 3 , 3 , 1 , 1 , 2 , 2 , 3 , 3 , 1 , 2 , 3 , 1 , 2 );
0 commit comments