Merge pull request #19 from ayosec/mongoc-140

Upgrade C driver to 1.4.0
pull/21/head
Thijs Cadier 8 years ago committed by GitHub
commit 2b1ae6dfc8

@ -19,7 +19,7 @@ bson = "> 0.1.0"
[dependencies.mongoc-sys]
path = "mongoc-sys"
version = "1.3.6"
version = "1.4.0"
[dev-dependencies]
chrono = "> 0.2.0"

@ -1,6 +1,6 @@
[package]
name = "mongoc-sys"
version = "1.3.6"
version = "1.4.0"
description = "Sys package with installer and bindings for mongoc"
authors = ["Thijs Cadier <thijs@appsignal.com>"]
build = "build.rs"

@ -2,7 +2,7 @@ use std::env;
use std::path::Path;
use std::process::Command;
static VERSION: &'static str = "1.3.5"; // Should be the same major version as in the manifest
static VERSION: &'static str = "1.4.0"; // Should be the same major version as in the manifest
fn main() {
let out_dir_var = env::var("OUT_DIR").unwrap();

@ -229,7 +229,7 @@ fn test_insert_failure() {
let result = collection.insert(&document, None);
assert!(result.is_err());
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())
);
}

Loading…
Cancel
Save