break out httpcall timeout test

This commit is contained in:
David Greenspan
2012-05-24 20:42:15 -07:00
parent 0815cc11e9
commit a1ec3937fc

View File

@@ -70,7 +70,6 @@ testAsyncMulti("httpcall - basic", [
}]);
testAsyncMulti("httpcall - failure", [
function(test, expect) {
// Accessing unknown server (should fail to make any connection)
@@ -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(),
@@ -113,7 +118,8 @@ testAsyncMulti("httpcall - failure", [
test.equal(data.method, "GET");
}));
}]);
}
]);
testAsyncMulti("httpcall - redirect", [