Skip to content

Commit

Permalink
Merge branch 'master' of github.com:windoze/fibio
Browse files Browse the repository at this point in the history
  • Loading branch information
windoze committed Aug 29, 2015
2 parents 8c94f25 + e512047 commit 5364c0a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions test/test_http_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,15 @@ void the_url_client() {
assert(resp.status_code==http_status_code::OK);
}
{
client::response &resp=uc.request("http://www.baidu.com/");
assert(resp.status_code==http_status_code::OK);
}
{
// http://github.com/ responses with 302, redirects to 'https://github.com/'
client::response &resp=uc.request("http://github.com/");
client::response &resp=uc.request("https://github.com/");
assert(resp.status_code==http_status_code::OK);
}
}

int fibio::main(int argc, char *argv[]) {
fiber_group fibers;
for (int i=0; i<1; i++) {
fibers.create_fiber(the_client);
//fibers.create_fiber(the_client);
fibers.create_fiber(the_url_client);
}
fibers.join_all();
Expand Down

0 comments on commit 5364c0a

Please sign in to comment.