Skip to content

Commit 5e33f52

Browse files
committed
Increase timeouts for ContainerInitTests
https://build.spring.io/browse/AMQP-MEIGHT-1066/
1 parent 09ec8ec commit 5e33f52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-rabbit/src/test/java/org/springframework/amqp/rabbit/listener/ContainerInitializationTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016 the original author or authors.
2+
* Copyright 2016-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -92,7 +92,7 @@ public void testMismatchedQueueDuringRestart() throws Exception {
9292
admin.declareQueue(new Queue(TEST_MISMATCH, false, false, true));
9393
SimpleMessageListenerContainer container = context.getBean(SimpleMessageListenerContainer.class);
9494
int n = 0;
95-
while (n++ < 100 && container.isRunning()) {
95+
while (n++ < 200 && container.isRunning()) {
9696
Thread.sleep(100);
9797
}
9898
assertFalse(container.isRunning());
@@ -107,7 +107,7 @@ public void testMismatchedQueueDuringRestartMultiQueue() throws Exception {
107107
admin.declareQueue(new Queue(TEST_MISMATCH, false, false, true));
108108
SimpleMessageListenerContainer container = context.getBean(SimpleMessageListenerContainer.class);
109109
int n = 0;
110-
while (n++ < 100 && container.isRunning()) {
110+
while (n++ < 200 && container.isRunning()) {
111111
Thread.sleep(100);
112112
}
113113
assertFalse(container.isRunning());

0 commit comments

Comments
 (0)