mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Be defensive detecting when Mono not running
This commit is contained in:
parent
b01c1d36ae
commit
8be3f33cfb
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user