Skip to content

Commit

Permalink
Add test case for GC producer removal from ObjectProcessor
Browse files Browse the repository at this point in the history
Issue : BB-554
  • Loading branch information
benzekrimaha committed Oct 15, 2024
1 parent cf438b0 commit 31d9ca6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/unit/lifecycle/LifecycleObjectTransitionProcessor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const config = require('../../config.json');
const LifecycleObjectTransitionProcessor =
require('../../../extensions/lifecycle/objectProcessor/LifecycleObjectTransitionProcessor');

describe('LifecycleObjectExpirationProcessor', () => {
describe('LifecycleObjectTransitionProcessor', () => {
let objectProcessor;

beforeEach(() => {
Expand All @@ -23,4 +23,12 @@ describe('LifecycleObjectExpirationProcessor', () => {
config.extensions.lifecycle.transitionTasksTopic
);
});

it('should set up gcProducer when start is called', done => {
objectProcessor.start(err => {
assert.ifError(err);
assert(objectProcessor._gcProducer, 'gcProducer should be set');
done();
});
});
});

0 comments on commit 31d9ca6

Please sign in to comment.