Add some initial testing to telemetry

This commit is contained in:
Joseph T. Lyons 2024-01-20 23:23:52 -05:00
parent 76d38525ff
commit c93d744be4
2 changed files with 199 additions and 23 deletions

View file

@ -99,6 +99,15 @@ impl FakeHttpClient {
.unwrap())
})
}
pub fn with_200_response() -> Arc<dyn HttpClient> {
Self::create(|_| async move {
Ok(Response::builder()
.status(200)
.body(Default::default())
.unwrap())
})
}
}
#[cfg(feature = "test-support")]