Skip to content

Commit

Permalink
test no pasa
Browse files Browse the repository at this point in the history
  • Loading branch information
joalopez1206 committed Sep 9, 2024
1 parent d3059c0 commit 7b6082d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/edns_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ async fn query_response_edns(domain_name: &str,
protocol: &str,
qtype: &str,
max_payload: Option<u16>,
version: u16,
flags: u16,
version: u8,
do_bit: bool,
option: Option<Vec<u16>>) -> Result<DnsMessage, ClientError> {

let mut config = ResolverConfig::default();
config.add_edns0(max_payload, version, flags, option);
config.add_edns0(max_payload, version, do_bit, option);
let mut resolver = AsyncResolver::new(config);

let response = resolver.lookup(
Expand All @@ -24,7 +24,7 @@ async fn query_response_edns(domain_name: &str,

#[tokio::test]
async fn query_a_type_edns() {
let response = query_response_edns("example.com", "UDP", "A", Some(1024), 0, 0, Some(vec![3])).await;
let response = query_response_edns("example.com", "UDP", "A", Some(1024), 0, true, Some(vec![3])).await;

if let Ok(rrs) = response {
assert_eq!(rrs.get_answer().len(), 1);
Expand Down

0 comments on commit 7b6082d

Please sign in to comment.