Add some initial testing to telemetry
This commit is contained in:
parent
76d38525ff
commit
c93d744be4
2 changed files with 199 additions and 23 deletions
|
@ -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")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue