Skip to content

Commit 980110a

Browse files
committed
Fix Race in Kotlin Test
1 parent 9ad176f commit 980110a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-rabbit/src/test/kotlin/org/springframework/amqp/rabbit/annotation/EnableRabbitKotlinTests.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2020 the original author or authors.
2+
* Copyright 2018-2021 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.
@@ -67,7 +67,7 @@ class EnableRabbitKotlinTests {
6767
val template = RabbitTemplate(this.config.cf())
6868
template.convertAndSend("kotlinQueue1", "test")
6969
assertThat(this.config.ehLatch.await(10, TimeUnit.SECONDS)).isTrue();
70-
val reply = template.receiveAndConvert("kotlinReplyQueue")
70+
val reply = template.receiveAndConvert("kotlinReplyQueue", 10_000)
7171
assertThat(reply).isEqualTo("error processed");
7272
}
7373

0 commit comments

Comments
 (0)