From 5130846c7fbc68bff62f2c5646c1ad8e8350e9b5 Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Sat, 15 Apr 2023 13:27:43 +0200 Subject: [PATCH] rename tests --- src/limit.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/limit.rs b/src/limit.rs index 49b43d7..647648e 100644 --- a/src/limit.rs +++ b/src/limit.rs @@ -190,19 +190,16 @@ impl LimitedRequester { } #[cfg(test)] -mod tests { - use crate::URLBundle; - +mod rate_limit { use super::*; - + use crate::URLBundle; #[tokio::test] - async fn test() { + async fn create_limited_requester() { let urls = URLBundle::new( String::from("http://localhost:3001/api/"), String::from("wss://localhost:3001/"), String::from("http://localhost:3001/cdn"), ); - let requester = LimitedRequester::new(urls.api).await; } }