Skip to content

Commit

Permalink
Merge branch 'w/8.6/feature/BB-413-circuit-breaker-backport' into tmp…
Browse files Browse the repository at this point in the history
…/octopus/w/8.7/feature/BB-413-circuit-breaker-backport
  • Loading branch information
bert-e committed Sep 14, 2023
2 parents 42cc186 + 88a256f commit fb16e04
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/performance/lifecycle/conductor-check-memory-balloon.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const assert = require('assert');
const async = require('async');

const baseConfig = require('../../../lib/Config');
baseConfig.zookeeper.autoCreateNamespace = true;
const mongoConfig = baseConfig.queuePopulator.mongo;
const LifecycleConductor = require('../../../extensions/lifecycle/conductor/LifecycleConductor');
const { BackbeatMetadataProxyMock } = require('../../functional/lifecycle/utils');
Expand Down Expand Up @@ -41,8 +42,12 @@ describe('Lifecycle Conductor', function testBackpressure() {
);

it('should apply backpressure on bucket queue instead of ballooning', done => {
lc.init(() => {
lc.processBuckets((err, nEnqueued) => {
lc.init(err => {
if (err) {
return done(err);
}

return lc.processBuckets((err, nEnqueued) => {
if (err) {
return done(err);
}
Expand Down

0 comments on commit fb16e04

Please sign in to comment.