Skip to content

Commit

Permalink
fixed poll lookup test
Browse files Browse the repository at this point in the history
  • Loading branch information
FranciscaOrtegaG committed Nov 15, 2023
1 parent 6582cd4 commit d7b13cb
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/resolver/lookup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,14 +385,10 @@ mod async_resolver_test {
} else {
panic!("La resolución DNS tuvo éxito antes de lo esperado");
}






}

#[tokio::test] // FIXME: loop
#[tokio::test]
async fn poll_lookup_a(){

let domain_name = DomainName::new_from_string("example.com".to_string());
Expand All @@ -412,10 +408,9 @@ mod async_resolver_test {
println!("response_future {:?}",response_future);

assert_eq!(response_future.is_ok(), true);
// let response = response_future.unwrap();
// assert_eq!(response_future.unwrap().get_header().get_ancount(), 0);
// assert_eq!(response.get_header().get_rcode() , 2);
// assert_eq!(response_future.unwrap().get_header().get_rcode() , 2); //FIXME:
let response = response_future.unwrap();
assert_eq!(response.get_header().get_ancount(), 1);
assert_eq!(response.get_header().get_rcode() , 0);
}

#[tokio::test]
Expand Down

0 comments on commit d7b13cb

Please sign in to comment.