[transport] expose a method for updating the host list

This commit is contained in:
spalger
2016-02-04 12:12:25 -07:00
parent 916aca58c8
commit 453cd9e1af
4 changed files with 57 additions and 25 deletions

View File

@ -15,15 +15,6 @@ describe('Connection Abstract', function () {
expect(conn.host).to.be(host);
});
it('constructs with string host using Host constructor', function(){
var host = 'localhost';
var port = 9200;
var hostUrl = host+':'+port;
var conn = new ConnectionAbstract(hostUrl);
expect(conn.host.host).to.be(host);
expect(conn.host.port).to.be(port);
});
it('requires a valid host', function () {
expect(function () {
new ConnectionAbstract();