From 388a14dbe7d2ab8889817d06bbbf726cfeb5ee03 Mon Sep 17 00:00:00 2001 From: Adrien Guillo Date: Thu, 20 Jun 2024 16:03:51 -0400 Subject: [PATCH] Attempt to fix broken test with `--all-features` --- quickwit/quickwit-ingest/Cargo.toml | 1 + quickwit/quickwit-ingest/src/ingest_v2/ingester.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/quickwit/quickwit-ingest/Cargo.toml b/quickwit/quickwit-ingest/Cargo.toml index 17502a1f0a7..d41bb0a1544 100644 --- a/quickwit/quickwit-ingest/Cargo.toml +++ b/quickwit/quickwit-ingest/Cargo.toml @@ -58,4 +58,5 @@ quickwit-codegen = { workspace = true } [features] failpoints = ["fail/failpoints"] +no-failpoints = [] testsuite = ["mockall"] diff --git a/quickwit/quickwit-ingest/src/ingest_v2/ingester.rs b/quickwit/quickwit-ingest/src/ingest_v2/ingester.rs index b6a71cf2544..74b92fb1b33 100644 --- a/quickwit/quickwit-ingest/src/ingest_v2/ingester.rs +++ b/quickwit/quickwit-ingest/src/ingest_v2/ingester.rs @@ -1978,7 +1978,7 @@ mod tests { // ```sh // cargo test --manifest-path quickwit/Cargo.toml -p quickwit-ingest --features failpoints -- test_ingester_persist_closes_shard_on_io_error // ``` - #[cfg(feature = "failpoints")] + #[cfg(all(feature = "failpoints", not(feature = "no-failpoints")))] #[tokio::test] async fn test_ingester_persist_closes_shard_on_io_error() { let scenario = fail::FailScenario::setup();