mirror of
https://github.com/Syfaro/fuzzysearch.git
synced 2024-11-23 15:22:31 +00:00
Remove broken test.
This commit is contained in:
parent
f8744080fd
commit
bc278441b6
@ -341,20 +341,3 @@ async fn create_metrics_server() {
|
|||||||
|
|
||||||
tokio::spawn(async move { server.await.expect("Metrics server error") });
|
tokio::spawn(async move { server.await.expect("Metrics server error") });
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
mod tests {
|
|
||||||
#[tokio::test]
|
|
||||||
async fn test_get_latest_id() {
|
|
||||||
let client = reqwest::ClientBuilder::new()
|
|
||||||
.user_agent(super::USER_AGENT)
|
|
||||||
.build()
|
|
||||||
.unwrap();
|
|
||||||
|
|
||||||
let latest_id = super::get_latest_id(&client, &("".to_string(), None))
|
|
||||||
.await
|
|
||||||
.expect("No error should occur");
|
|
||||||
|
|
||||||
assert!(latest_id > 1_000_000, "Latest ID should be reasonably high");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user