Skip to content

Commit bc981be

Browse files
committed
DATAMONGO-2113 - Polishing.
Increase subscription await timeout to allow for slow system processing such as on TravisCI. Original pull request: spring-projects#615.
1 parent 398eafe commit bc981be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/messaging/SubscriptionUtils.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@
2525
* Utilities for testing long running asnyc message retrieval.
2626
*
2727
* @author Christoph Strobl
28+
* @author Mark Paluch
2829
*/
2930
class SubscriptionUtils {
3031

31-
static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(1);
32+
static final Duration DEFAULT_TIMEOUT = Duration.ofMillis(1500);
3233

3334
/**
3435
* Wait for {@link Subscription#isActive() to become active} but not longer than {@link #DEFAULT_TIMEOUT}.

0 commit comments

Comments
 (0)