get the unit tests to pass

This commit is contained in:
spalger
2016-05-19 09:09:31 -07:00
parent 38cf442acc
commit c7f6c09d8c
31 changed files with 67 additions and 75 deletions

View File

@ -175,10 +175,10 @@ describe('Connection Pool', function () {
new ConnectionAbstract(new Host('http://localhost:9202')),
new ConnectionAbstract(new Host('http://localhost:9203'))
];
var pingQueue = _.shuffle(connections);
var pingQueue = _v4.shuffle(connections);
var expectedSelection = pingQueue[pingQueue.length - 1];
_.each(pingQueue, function (conn) {
_v4.each(pingQueue, function (conn) {
pool.addConnection(conn);
stub(conn, 'ping', function (params, cb) {
if (typeof params === 'function') {