mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-21 16:19:42 +00:00
Be defensive detecting when Mono not running
This commit is contained in:
+3
@@ -59,6 +59,9 @@ public class SampleMongoApplicationTests {
|
||||
if (root.getMessage().contains("Unable to connect to any server")) {
|
||||
return true;
|
||||
}
|
||||
if (root.getMessage().contains("Timed out while waiting for a server")) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user