From 7b6082dd50c245b4cb5b6f3aa6572b1c727ba033 Mon Sep 17 00:00:00 2001 From: joalopez1206 Date: Mon, 9 Sep 2024 12:17:10 -0300 Subject: [PATCH] test no pasa --- tests/edns_test.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/edns_test.rs b/tests/edns_test.rs index ace2a4de..266fb277 100644 --- a/tests/edns_test.rs +++ b/tests/edns_test.rs @@ -5,12 +5,12 @@ async fn query_response_edns(domain_name: &str, protocol: &str, qtype: &str, max_payload: Option, - version: u16, - flags: u16, + version: u8, + do_bit: bool, option: Option>) -> Result { 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( @@ -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);