Skip to content

Commit 98ad3dc

Browse files
Increase test delay (#653)
1 parent b8e5f6d commit 98ad3dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

data-pipeline/src/agent_info/fetcher.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ mod tests {
332332

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

352352
// Wait for second fetch
353353
while mock_v2.hits_async().await == 0 {
354-
tokio::time::sleep(Duration::from_millis(10)).await;
354+
tokio::time::sleep(Duration::from_millis(100)).await;
355355
}
356356

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

0 commit comments

Comments
 (0)