1
1
/*
2
- * Copyright 2018-2022 the original author or authors.
2
+ * Copyright 2018-2023 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -134,7 +134,7 @@ public void extraCleanUp(TestInfo info) {
134
134
public void testStandard () throws Exception {
135
135
try (AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext (StandardConfig .class )) {
136
136
StandardConfig config = ctx .getBean (StandardConfig .class );
137
- assertThat (config .latch .await (10 , TimeUnit .SECONDS )).isTrue ();
137
+ assertThat (config .latch .await (30 , TimeUnit .SECONDS )).isTrue ();
138
138
ctx .getBean (SourcePollingChannelAdapter .class ).stop ();
139
139
List <Integer > sfCalls = config .sessionSources .stream ().limit (17 ).collect (Collectors .toList ());
140
140
assertThat (sfCalls ).containsExactly (1 , 1 , 1 , 2 , 2 , 2 , 3 , 3 , 3 , 1 , 1 , 2 , 2 , 3 , 3 , 1 , 1 );
@@ -152,7 +152,7 @@ public void testStandard() throws Exception {
152
152
public void testFair () throws Exception {
153
153
try (AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext (FairConfig .class )) {
154
154
StandardConfig config = ctx .getBean (StandardConfig .class );
155
- assertThat (config .latch .await (10 , TimeUnit .SECONDS )).isTrue ();
155
+ assertThat (config .latch .await (30 , TimeUnit .SECONDS )).isTrue ();
156
156
ctx .getBean (SourcePollingChannelAdapter .class ).stop ();
157
157
List <Integer > sfCalls = config .sessionSources .stream ().limit (17 ).collect (Collectors .toList ());
158
158
assertThat (sfCalls ).containsExactly (1 , 1 , 2 , 2 , 3 , 3 , 1 , 1 , 2 , 2 , 3 , 3 , 1 , 1 , 2 , 2 , 3 );
@@ -170,7 +170,7 @@ public void testFair() throws Exception {
170
170
public void testVariableLocalDir () throws Exception {
171
171
try (ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext (VariableLocalConfig .class )) {
172
172
StandardConfig config = ctx .getBean (StandardConfig .class );
173
- assertThat (config .latch .await (10 , TimeUnit .SECONDS )).isTrue ();
173
+ assertThat (config .latch .await (30 , TimeUnit .SECONDS )).isTrue ();
174
174
ctx .getBean (SourcePollingChannelAdapter .class ).stop ();
175
175
List <Integer > sfCalls = config .sessionSources .stream ().limit (17 ).collect (Collectors .toList ());
176
176
assertThat (sfCalls ).containsExactly (1 , 1 , 1 , 2 , 2 , 2 , 3 , 3 , 3 , 1 , 1 , 2 , 2 , 3 , 3 , 1 , 1 );
@@ -188,7 +188,7 @@ public void testVariableLocalDir() throws Exception {
188
188
public void testStreaming () throws Exception {
189
189
try (AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext (StreamingConfig .class )) {
190
190
StandardConfig config = ctx .getBean (StreamingConfig .class );
191
- assertThat (config .latch .await (10 , TimeUnit .SECONDS )).isTrue ();
191
+ assertThat (config .latch .await (30 , TimeUnit .SECONDS )).isTrue ();
192
192
ctx .getBean (SourcePollingChannelAdapter .class ).stop ();
193
193
List <Integer > sfCalls = config .sessionSources .stream ().limit (17 ).collect (Collectors .toList ());
194
194
// there's an extra getSession() with this adapter in listFiles
@@ -211,7 +211,7 @@ public void testStreaming() throws Exception {
211
211
public void testFairStreaming () throws Exception {
212
212
try (ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext (FairStreamingConfig .class )) {
213
213
StandardConfig config = ctx .getBean (StandardConfig .class );
214
- assertThat (config .latch .await (10 , TimeUnit .SECONDS )).isTrue ();
214
+ assertThat (config .latch .await (30 , TimeUnit .SECONDS )).isTrue ();
215
215
ctx .getBean (SourcePollingChannelAdapter .class ).stop ();
216
216
List <Integer > sfCalls = config .sessionSources .stream ().limit (17 ).collect (Collectors .toList ());
217
217
assertThat (sfCalls ).containsExactly (1 , 1 , 2 , 2 , 3 , 3 , 1 , 1 , 2 , 2 , 3 , 3 , 1 , 2 , 3 , 1 , 2 );
0 commit comments