Update error message from libmongoc

pull/19/head
Ayose 8 years ago
parent ef095d0464
commit a472ab9b0d

@ -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())
); );
} }

Loading…
Cancel
Save