Skip to content

Commit

Permalink
Assert shutdown timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
rdettai committed Sep 18, 2024
1 parent 5fcbbff commit 23b9fe7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions quickwit/quickwit-integration-tests/src/tests/ingest_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 23b9fe7

Please sign in to comment.