Skip to content

Commit 5c3144b

Browse files
committed
minor: skip large bulk insert tests except on linux
1 parent ab1183c commit 5c3144b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/test/coll.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,10 @@ lazy_static! {
328328
#[cfg_attr(feature = "async-std-runtime", async_std::test)]
329329
#[function_name::named]
330330
async fn large_insert() {
331+
if std::env::consts::OS != "linux" {
332+
return;
333+
}
334+
331335
let _guard = LOCK.run_concurrently().await;
332336

333337
let docs = vec![LARGE_DOC.clone(); 35000];
@@ -373,6 +377,10 @@ fn multibatch_documents_with_duplicate_keys() -> Vec<Document> {
373377
#[cfg_attr(feature = "async-std-runtime", async_std::test)]
374378
#[function_name::named]
375379
async fn large_insert_unordered_with_errors() {
380+
if std::env::consts::OS != "linux" {
381+
return;
382+
}
383+
376384
let _guard = LOCK.run_concurrently().await;
377385

378386
let docs = multibatch_documents_with_duplicate_keys();
@@ -410,6 +418,10 @@ async fn large_insert_unordered_with_errors() {
410418
#[cfg_attr(feature = "async-std-runtime", async_std::test)]
411419
#[function_name::named]
412420
async fn large_insert_ordered_with_errors() {
421+
if std::env::consts::OS != "linux" {
422+
return;
423+
}
424+
413425
let _guard = LOCK.run_concurrently().await;
414426

415427
let docs = multibatch_documents_with_duplicate_keys();

0 commit comments

Comments
 (0)