1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

Remove resolve_addr::tests::resolve_addr_err (#1531)

On some nameservers bad domain names still resolve.
This commit is contained in:
Ryan Dahl 2019-01-16 11:25:26 -05:00 committed by GitHub
parent bc22dca2aa
commit eb6f7f901b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -153,13 +153,4 @@ mod tests {
let actual = resolve_addr("[2001:db8::1]:8080").wait().unwrap();
assert_eq!(actual, expected);
}
#[test]
fn resolve_addr_err() {
let r = resolve_addr("not-a-real-domain.blahblah:8080").wait();
match r {
Err(ResolveAddrError::Resolution(_)) => {} // expected
_ => assert!(false),
}
}
}