rename tests
This commit is contained in:
parent
57a1df35e6
commit
38bf6dd5d1
|
@ -190,19 +190,16 @@ impl LimitedRequester {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod rate_limit {
|
||||||
use crate::URLBundle;
|
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
use crate::URLBundle;
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn test() {
|
async fn create_limited_requester() {
|
||||||
let urls = URLBundle::new(
|
let urls = URLBundle::new(
|
||||||
String::from("http://localhost:3001/api/"),
|
String::from("http://localhost:3001/api/"),
|
||||||
String::from("wss://localhost:3001/"),
|
String::from("wss://localhost:3001/"),
|
||||||
String::from("http://localhost:3001/cdn"),
|
String::from("http://localhost:3001/cdn"),
|
||||||
);
|
);
|
||||||
|
|
||||||
let requester = LimitedRequester::new(urls.api).await;
|
let requester = LimitedRequester::new(urls.api).await;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue