Skip to content

Commit 269110a

Browse files
committed
minor: revise tailable cursor test to avoid infinite hangs
1 parent 1a0c8af commit 269110a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/cursor.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ async fn tailable_cursor() {
6464
),
6565
};
6666

67-
coll.insert_one(doc! { "_id": 5 }, None).await.unwrap();
67+
RUNTIME.execute(async move {
68+
coll.insert_one(doc! { "_id": 5 }, None).await.unwrap();
69+
});
6870

6971
let delay = RUNTIME.delay_for(await_time);
7072

0 commit comments

Comments
 (0)