create test to... test
This commit is contained in:
parent
2829f2e2e0
commit
6ec87fc913
14
src/limit.rs
14
src/limit.rs
|
@ -46,6 +46,8 @@ impl LimitedRequester {
|
||||||
e
|
e
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
|
println!("{}", result);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
2. extract rate and absolute rate limits from response result
|
2. extract rate and absolute rate limits from response result
|
||||||
3. put each different rate limit as a new object in the limit vector
|
3. put each different rate limit as a new object in the limit vector
|
||||||
|
@ -62,12 +64,14 @@ impl LimitedRequester {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* #[cfg(test)] Tests work here as well, neat!
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[tokio::test]
|
||||||
fn test_parse_url() {
|
async fn test_parse_url() {
|
||||||
assert_eq!(1, 1)
|
let test_vec = LimitedRequester::check_limits(String::from("http://localhost:3001/")).await;
|
||||||
|
let first_from_vec = test_vec.get(0).unwrap();
|
||||||
|
println!("{}", first_from_vec.bucket);
|
||||||
}
|
}
|
||||||
} */
|
}
|
||||||
|
|
Loading…
Reference in New Issue