(script: Vec<Reply>, timeout: Duration)
| 1044 | } |
| 1045 | |
| 1046 | async fn run_progress(script: Vec<Reply>, timeout: Duration) -> crate::CheckResult { |
| 1047 | let url = server(script).await; |
| 1048 | let mut samples = Vec::new(); |
| 1049 | observer() |
| 1050 | .run( |
| 1051 | &progress(timeout, 1), |
| 1052 | 0, |
| 1053 | &BTreeMap::from([("rpc".into(), url)]), |
| 1054 | &mut samples, |
| 1055 | Instant::now(), |
| 1056 | Instant::now() + RPC_BUDGET, |
| 1057 | ) |
| 1058 | .await |
| 1059 | } |
| 1060 | |
| 1061 | #[tokio::test] |
| 1062 | async fn convergence_compares_common_height_and_accepts_lag() { |