Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit e0f729e

Browse files
committed
Merge pull request #18 from tkuehn/master
updated test_connect_success to use http://example.iana.org/
2 parents 17afe7a + f99dcac commit e0f729e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

http_client.rc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,17 +326,17 @@ pub fn test_connect_error() {
326326
#[allow(non_implicitly_copyable_typarams)]
327327
pub fn test_connect_success() {
328328
use extra::net::url;
329-
let url = url::from_str("http://example.com/").get();
329+
let url = url::from_str("http://example.iana.org/").get();
330330
let mut request = uv_http_request(url);
331331
let events = sequence(&mut request);
332332

333333
for events.iter().advance |ev| {
334334
match *ev {
335335
Error(*) => { fail!() },
336336
Status(status) => match status {
337-
StatusOk => { fail!(~"status OK, expected found (302)") },
338-
StatusFound => { },
339-
StatusUnknown => { fail!(~"status unknown, expected found (302)") }
337+
StatusOk => { },
338+
StatusFound => { fail!(~"status found, expected OK (200)") },
339+
StatusUnknown => { fail!(~"status unknown, expected OK (200)") }
340340
},
341341
_ => { }
342342
}

0 commit comments

Comments
 (0)