Skip to content

Commit

Permalink
break out httpcall timeout test
Browse files Browse the repository at this point in the history
  • Loading branch information
dgreensp committed May 25, 2012
1 parent 0815cc1 commit a1ec393
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/http/httpcall_tests.js
Expand Up @@ -70,7 +70,6 @@ testAsyncMulti("httpcall - basic", [
}]);

testAsyncMulti("httpcall - failure", [

function(test, expect) {

// Accessing unknown server (should fail to make any connection)
Expand All @@ -91,6 +90,12 @@ testAsyncMulti("httpcall - failure", [
test.equal(result.statusCode, 500);
}));

}
]);

testAsyncMulti("httpcall - timeout", [
function(test, expect) {

// Should time out
Meteor.http.call(
"GET", url_prefix()+"/slow-"+Meteor.uuid(),
Expand All @@ -113,7 +118,8 @@ testAsyncMulti("httpcall - failure", [
test.equal(data.method, "GET");

}));
}]);
}
]);

testAsyncMulti("httpcall - redirect", [

Expand Down

0 comments on commit a1ec393

Please sign in to comment.