Skip to content

Commit b691c08

Browse files
committed
fix(cli): use valid default services in tests
1 parent f8fb91a commit b691c08

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

quickwit/quickwit-cli/tests/helpers.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ use quickwit_cli::service::RunCliCommand;
2424
use quickwit_common::net::find_available_tcp_port;
2525
use quickwit_common::test_utils::wait_for_server_ready;
2626
use quickwit_common::uri::Uri;
27-
use quickwit_config::service::QuickwitService;
2827
use quickwit_metastore::{IndexMetadata, IndexMetadataResponseExt, MetastoreResolver};
2928
use quickwit_proto::metastore::{IndexMetadataRequest, MetastoreService, MetastoreServiceClient};
3029
use quickwit_proto::types::IndexId;
@@ -155,9 +154,12 @@ impl TestEnv {
155154
}
156155

157156
pub async fn start_server(&self) -> anyhow::Result<()> {
157+
// Use the default all-in-one service set, which excludes the standalone compactor.
158+
// `QuickwitService::supported_services()` includes the compactor and would make this
159+
// config invalid unless `enable_standalone_compactors` was explicitly enabled.
158160
let run_command = RunCliCommand {
159161
config_uri: self.resource_files.config.clone(),
160-
services: Some(QuickwitService::supported_services()),
162+
services: None,
161163
};
162164
let server_handle = tokio::spawn(async move {
163165
if let Err(error) = run_command

0 commit comments

Comments
 (0)