|
|
@ -229,7 +229,7 @@ fn test_insert_failure() {
|
|
|
|
let result = collection.insert(&document, None);
|
|
|
|
let result = collection.insert(&document, None);
|
|
|
|
assert!(result.is_err());
|
|
|
|
assert!(result.is_err());
|
|
|
|
assert_eq!(
|
|
|
|
assert_eq!(
|
|
|
|
"MongoError (BsoncError: Unknown/Unknown - Timed out trying to select a server)",
|
|
|
|
"MongoError (BsoncError: Unknown/Unknown - No suitable servers found: `serverSelectionTimeoutMS` expired: [connection timeout calling ismaster on 'localhost:27018'])",
|
|
|
|
format!("{:?}", result.err().unwrap())
|
|
|
|
format!("{:?}", result.err().unwrap())
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|