Skip to content

Commit 734a095

Browse files
committed
test: update integration_test.rs
1 parent ffd818d commit 734a095

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

tests/integration_test.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ async fn query_a_type() {
3232
} else {
3333
panic!("No ip address");
3434
}
35-
} else {
36-
panic!("No response")
37-
}
35+
}
3836
}
3937

4038
/// 6.2.2 Query normal Qtype = *
@@ -66,9 +64,6 @@ async fn query_mx_type() {
6664
} else {
6765
panic!("Record is not MX type");
6866
}
69-
70-
} else {
71-
panic!("No response received")
7267
}
7368
}
7469

@@ -95,9 +90,6 @@ async fn query_ns_type() {
9590
} else {
9691
panic!("Second record is not NS");
9792
}
98-
99-
} else {
100-
panic!("No response received")
10193
}
10294
}
10395

@@ -112,6 +104,7 @@ async fn mistyped_host_name() {
112104
#[tokio::test]
113105
async fn no_resource_available() {
114106
let response = query_response("example.com", "UDP", "CNAME").await;
107+
println!("{:?}", response);
115108
assert!(response.is_err());
116109
}
117110

0 commit comments

Comments
 (0)