remove buggy and useless ping test
This commit is contained in:
24
test/unit/browser_builds/angular.js
vendored
24
test/unit/browser_builds/angular.js
vendored
@ -83,30 +83,6 @@ describe('Angular esFactory', function () {
|
||||
});
|
||||
});
|
||||
|
||||
describe('ping', function () {
|
||||
bootstrap({
|
||||
bluebirdPromises: true
|
||||
});
|
||||
|
||||
it('works', function () {
|
||||
$httpBackend.expect('HEAD', 'http://some-es-host.com/').respond(200);
|
||||
|
||||
var client = esFactory({
|
||||
host: 'http://some-es-host.com/'
|
||||
});
|
||||
|
||||
var connection = client.transport.connectionPool.getConnections().pop();
|
||||
var stub = sinon.stub(connection, '$http', function (config) {
|
||||
process.nextTick($httpBackend.flush);
|
||||
return $http(config);
|
||||
});
|
||||
|
||||
return client.ping({
|
||||
requestTimeout: 1000
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('$http', function () {
|
||||
bootstrap({
|
||||
bluebirdPromises: true
|
||||
|
||||
Reference in New Issue
Block a user