Increase timeout for Kafka sample
This commit is contained in:
parent
20dfeddbb3
commit
fd0c773939
|
@ -41,7 +41,7 @@ class SampleKafkaApplicationTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void testVanillaExchange() throws Exception {
|
void testVanillaExchange() throws Exception {
|
||||||
long end = System.currentTimeMillis() + 10000;
|
long end = System.currentTimeMillis() + 30000;
|
||||||
while (!this.output.toString().contains("A simple test message")
|
while (!this.output.toString().contains("A simple test message")
|
||||||
&& System.currentTimeMillis() < end) {
|
&& System.currentTimeMillis() < end) {
|
||||||
Thread.sleep(250);
|
Thread.sleep(250);
|
||||||
|
|
Loading…
Reference in New Issue