match document is removed from test

pull/48/head
inv2004
parent 5cfcf2aec9
commit 5849697bcd

@ -5,7 +5,7 @@ use std::iter::Iterator;
use super::collection::Collection;
use mongoc::bindings;
use bson::{Bson,Document};
use bson::Document;
use super::bsonc::Bsonc;
use super::BsoncError;
use super::Result;

@ -17,7 +17,7 @@ fn test_change_stream() {
let guard = thread::spawn(move || {
let client = cloned_pool.pop();
let collection = client.get_collection("rust_driver_test", "change_stream");
let stream = collection.watch(&doc!{"$match": {"$gte": 10}}, &doc!{}, Some(1000)).unwrap();
let stream = collection.watch(&doc!{}, &doc!{}, Some(1000)).unwrap();
let mut counter = 10;
for x in stream {
@ -38,7 +38,6 @@ fn test_change_stream() {
collection.insert(&doc! {"c": i}, None).unwrap();
}
assert_eq!(25, guard.join().unwrap());
}

Loading…
Cancel
Save