ChangeStream test in_progress
parent
bdca011234
commit
bdc045eeb2
@ -1,4 +1,20 @@
|
||||
//use bson;
|
||||
|
||||
use std::sync::Arc;
|
||||
use std::thread;
|
||||
|
||||
use mongo_driver::client::{ClientPool,Uri};
|
||||
use mongo_driver::Result;
|
||||
|
||||
#[test]
|
||||
fn test_change_stream() {
|
||||
assert_eq!(true, true);
|
||||
let uri = Uri::new("mongodb://localhost:27017/").unwrap();
|
||||
let pool = Arc::new(ClientPool::new(uri, None));
|
||||
let client = pool.pop();
|
||||
let mut collection = client.get_collection("rust_driver_test", "change_stream");
|
||||
|
||||
let stream = collection.watch(&doc!{}, &doc!{"maxAwaitTimeMS": 10_000}).unwrap();
|
||||
let next = stream.into_iter().next().unwrap().unwrap();
|
||||
assert_eq!(true, false);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue