diff --git a/quickwit/quickwit-integration-tests/src/tests/ingest_tests.rs b/quickwit/quickwit-integration-tests/src/tests/ingest_tests.rs index e7b3baddca2..38f67f49ec3 100644 --- a/quickwit/quickwit-integration-tests/src/tests/ingest_tests.rs +++ b/quickwit/quickwit-integration-tests/src/tests/ingest_tests.rs @@ -740,11 +740,10 @@ async fn test_shutdown_control_plane_first() { .await .unwrap(); - // The indexer should fail to shutdown because it cannot commit the - // shard EOF - if let Ok(Ok(_)) = tokio::time::timeout(Duration::from_secs(5), sandbox.shutdown()).await { - panic!("Expected timeout or error on shutdown"); - } + // The indexer hangs on shutdown because it cannot commit the shard EOF + tokio::time::timeout(Duration::from_secs(5), sandbox.shutdown()) + .await + .unwrap_err(); } #[tokio::test]