Skip to content

Commit

Permalink
test: Mock timer in lifecycle tests
Browse files Browse the repository at this point in the history
  • Loading branch information
morgsmccauley committed Nov 12, 2024
1 parent 4a949af commit ecf62f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions coordinator/src/lifecycle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,8 @@ mod tests {

#[tokio::test]
async fn restarts_unhealthy_stream() {
tokio::time::pause();

let config = IndexerConfig::default();
let mut state = IndexerState {
lifecycle_state: LifecycleState::Running,
Expand Down Expand Up @@ -953,6 +955,8 @@ mod tests {

#[tokio::test]
async fn restarts_unhealthy_executor() {
tokio::time::pause();

let config = IndexerConfig::default();
let mut state = IndexerState {
lifecycle_state: LifecycleState::Running,
Expand Down

0 comments on commit ecf62f4

Please sign in to comment.