Skip to content

Commit

Permalink
Update test cases to reflect version changes for bucketd and zookeepe…
Browse files Browse the repository at this point in the history
…r sources
  • Loading branch information
KillianG committed Nov 20, 2024
1 parent f302111 commit 736afee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/lifecycle/LifecycleConductor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,19 +242,19 @@ describe('Lifecycle Conductor', () => {
});

describe('_indexesGetOrCreate', () => {
it('should return v1 for bucketd bucket sources', () => {
it('should return v2 for bucketd bucket sources', () => {
conductor._bucketSource = 'bucketd';
conductor._indexesGetOrCreate(testTask, log, (err, taskVersion) => {
assert.ifError(err);
assert.deepStrictEqual(taskVersion, lifecycleTaskVersions.v2);
});
});

it('should return v1 for zookeeper bucket sources', () => {
it('should return v2 for zookeeper bucket sources', () => {
conductor._bucketSource = 'zookeeper';
conductor._indexesGetOrCreate(testTask, log, (err, taskVersion) => {
assert.ifError(err);
assert.deepStrictEqual(taskVersion, lifecycleTaskVersions.v1);
assert.deepStrictEqual(taskVersion, lifecycleTaskVersions.v2);
});
});

Expand Down

0 comments on commit 736afee

Please sign in to comment.