mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
break out httpcall timeout test
This commit is contained in:
@@ -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", [
|
||||
|
||||
|
||||
Reference in New Issue
Block a user