Drop collection in find and modify test

pull/4/head
Thijs Cadier 9 years ago
parent 87e4f3cb8b
commit 5ef49c0258

@ -133,7 +133,8 @@ fn test_find_and_modify() {
let uri = Uri::new("mongodb://localhost:27017/").unwrap(); let uri = Uri::new("mongodb://localhost:27017/").unwrap();
let pool = ClientPool::new(uri, None); let pool = ClientPool::new(uri, None);
let client = pool.pop(); let client = pool.pop();
let collection = client.get_collection("rust_driver_test", "find_and_modify"); let mut collection = client.get_collection("rust_driver_test", "find_and_modify");
collection.drop().unwrap_or(());
// Upsert something, it should now exist // Upsert something, it should now exist
let query = doc! { let query = doc! {

Loading…
Cancel
Save