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