Skip to content

Commit 5e8fc09

Browse files
committed
test: update integration_test.rs, qtype=any test
1 parent e983c4a commit 5e8fc09

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/integration_test.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ async fn query_a_type() {
3939

4040
/// 6.2.2 Query normal Qtype = *
4141
#[tokio::test]
42-
#[should_panic]
4342
async fn query_all_type() {
44-
let __response = query_response("example.com", "TCP", "ANY").await;
43+
let udp_response = query_response("example.com", "UDP", "ANY").await;
44+
let tcp_response = query_response("example.com", "TCP", "ANY").await;
45+
assert!(udp_response.is_err());
46+
assert!(tcp_response.is_err());
4547
}
4648

4749
/// 6.2.3 Query Qtype = MX

0 commit comments

Comments
 (0)