Skip to content

Commit

Permalink
Increase ingester request timeouts for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
guilload committed May 16, 2024
1 parent fe0d3af commit 7f8f938
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion quickwit/quickwit-ingest/src/ingest_v2/ingester.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const MIN_RESET_SHARDS_INTERVAL: Duration = if cfg!(any(test, feature = "testsui
/// Duration after which persist requests time out with
/// [`quickwit_proto::ingest::IngestV2Error::Timeout`].
pub(super) const PERSIST_REQUEST_TIMEOUT: Duration = if cfg!(any(test, feature = "testsuite")) {
Duration::from_millis(10)
Duration::from_millis(100)
} else {
Duration::from_secs(6)
};
Expand Down
2 changes: 1 addition & 1 deletion quickwit/quickwit-ingest/src/ingest_v2/replication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub(super) const SYN_REPLICATION_STREAM_CAPACITY: usize = 5;

/// Duration after which replication requests time out with [`ReplicationError::Timeout`].
const REPLICATION_REQUEST_TIMEOUT: Duration = if cfg!(any(test, feature = "testsuite")) {
Duration::from_millis(50)
Duration::from_millis(100)
} else {
Duration::from_secs(3)
};
Expand Down

0 comments on commit 7f8f938

Please sign in to comment.