cluster-balancer
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -130,3 +130,2 @@ 'use strict'; | ||
if (allStatuses.length < 2) { | ||
_advisor.emit('advice', null); | ||
return null; | ||
@@ -133,0 +132,0 @@ } |
{ | ||
"name": "cluster-balancer", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "autonomously balance load across a cluster using zookeeper or redis", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -87,6 +87,8 @@ 'use strict'; | ||
it('should give no advise', function() { | ||
this.timeout(6000); | ||
let scenario = createScenario({}); | ||
return testScenario(scenario).then(advice => { | ||
expect(advice).to.equal(null); | ||
}); | ||
return testScenario(scenario).timeout(5000, 'expected no advice') | ||
.catch(err => { | ||
expect(err.message).to.equal('expected no advice'); | ||
}); | ||
}); | ||
@@ -93,0 +95,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39443
951