@@ -135,7 +135,7 @@ public void extraCleanUp(TestInfo info) {
135135 public void testStandard () throws Exception {
136136 try (AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext (StandardConfig .class )) {
137137 StandardConfig config = ctx .getBean (StandardConfig .class );
138- assertThat (config .latch .await (10 , TimeUnit .SECONDS )).isTrue ();
138+ assertThat (config .latch .await (30 , TimeUnit .SECONDS )).isTrue ();
139139 ctx .getBean (SourcePollingChannelAdapter .class ).stop ();
140140 List <Integer > sfCalls = config .sessionSources .stream ().limit (17 ).collect (Collectors .toList ());
141141 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 {
153153 public void testFair () throws Exception {
154154 try (AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext (FairConfig .class )) {
155155 StandardConfig config = ctx .getBean (StandardConfig .class );
156- assertThat (config .latch .await (10 , TimeUnit .SECONDS )).isTrue ();
156+ assertThat (config .latch .await (30 , TimeUnit .SECONDS )).isTrue ();
157157 ctx .getBean (SourcePollingChannelAdapter .class ).stop ();
158158 List <Integer > sfCalls = config .sessionSources .stream ().limit (17 ).collect (Collectors .toList ());
159159 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 {
171171 public void testVariableLocalDir () throws Exception {
172172 try (ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext (VariableLocalConfig .class )) {
173173 StandardConfig config = ctx .getBean (StandardConfig .class );
174- assertThat (config .latch .await (10 , TimeUnit .SECONDS )).isTrue ();
174+ assertThat (config .latch .await (30 , TimeUnit .SECONDS )).isTrue ();
175175 ctx .getBean (SourcePollingChannelAdapter .class ).stop ();
176176 List <Integer > sfCalls = config .sessionSources .stream ().limit (17 ).collect (Collectors .toList ());
177177 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 {
189189 public void testStreaming () throws Exception {
190190 try (AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext (StreamingConfig .class )) {
191191 StandardConfig config = ctx .getBean (StreamingConfig .class );
192- assertThat (config .latch .await (10 , TimeUnit .SECONDS )).isTrue ();
192+ assertThat (config .latch .await (30 , TimeUnit .SECONDS )).isTrue ();
193193 ctx .getBean (SourcePollingChannelAdapter .class ).stop ();
194194 List <Integer > sfCalls = config .sessionSources .stream ().limit (17 ).collect (Collectors .toList ());
195195 // there's an extra getSession() with this adapter in listFiles
@@ -212,7 +212,7 @@ public void testStreaming() throws Exception {
212212 public void testFairStreaming () throws Exception {
213213 try (ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext (FairStreamingConfig .class )) {
214214 StandardConfig config = ctx .getBean (StandardConfig .class );
215- assertThat (config .latch .await (10 , TimeUnit .SECONDS )).isTrue ();
215+ assertThat (config .latch .await (30 , TimeUnit .SECONDS )).isTrue ();
216216 ctx .getBean (SourcePollingChannelAdapter .class ).stop ();
217217 List <Integer > sfCalls = config .sessionSources .stream ().limit (17 ).collect (Collectors .toList ());
218218 assertThat (sfCalls ).containsExactly (1 , 1 , 2 , 2 , 3 , 3 , 1 , 1 , 2 , 2 , 3 , 3 , 1 , 2 , 3 , 1 , 2 );
0 commit comments