tests: use tokio_test::block_on() instead of test macro

This commit is contained in:
ThetaDev 2023-01-27 20:32:51 +01:00
parent f94d8db4d0
commit 06aa677ef7
3 changed files with 321 additions and 429 deletions

View file

@ -1226,10 +1226,10 @@ fn validate_country(country: Country) -> Country {
mod tests {
use super::*;
#[tokio::test]
async fn t_get_ytm_visitor_data() {
#[test]
fn t_get_ytm_visitor_data() {
let rp = RustyPipe::new();
let visitor_data = rp.get_ytm_visitor_data().await.unwrap();
let visitor_data = tokio_test::block_on(rp.get_ytm_visitor_data()).unwrap();
dbg!(&visitor_data);
assert!(visitor_data.ends_with("%3D"));
assert_eq!(visitor_data.len(), 32)