Skip to content

Commit c7947cd

Browse files
authored
RUST-1217 Skip tailable cursor test on serverless (#608)
1 parent 0a50512 commit c7947cd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/test/cursor.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,20 @@ use crate::{
88
bson::doc,
99
options::{CreateCollectionOptions, CursorType, FindOptions},
1010
runtime,
11-
test::{util::EventClient, TestClient, LOCK},
11+
test::{log_uncaptured, util::EventClient, TestClient, LOCK, SERVERLESS},
1212
};
1313

1414
#[cfg_attr(feature = "tokio-runtime", tokio::test)]
1515
#[cfg_attr(feature = "async-std-runtime", async_std::test)]
1616
#[function_name::named]
1717
async fn tailable_cursor() {
18+
if *SERVERLESS {
19+
log_uncaptured(
20+
"skipping cursor::tailable_cursor; serverless does not support capped collections",
21+
);
22+
return;
23+
}
24+
1825
let _guard: RwLockReadGuard<()> = LOCK.run_concurrently().await;
1926

2027
let client = TestClient::new().await;

0 commit comments

Comments
 (0)