Skip to content

Commit

Permalink
Increase test delay
Browse files Browse the repository at this point in the history
  • Loading branch information
VianneyRuhlmann committed Sep 27, 2024
1 parent 1d90886 commit b6d862b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data-pipeline/src/agent_info/fetcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ mod tests {

// Wait for first fetch
while mock_v1.hits_async().await == 0 {
tokio::time::sleep(Duration::from_millis(10)).await;
tokio::time::sleep(Duration::from_millis(100)).await;
}
let version_1 = info.load().as_ref().unwrap().info.version.clone().unwrap();
assert_eq!(version_1, "1");
Expand All @@ -351,7 +351,7 @@ mod tests {

// Wait for second fetch
while mock_v2.hits_async().await == 0 {
tokio::time::sleep(Duration::from_millis(10)).await;
tokio::time::sleep(Duration::from_millis(100)).await;
}

let version_2 = info.load().as_ref().unwrap().info.version.clone().unwrap();
Expand Down

0 comments on commit b6d862b

Please sign in to comment.