diff --git a/scripts/commands/stream/load.js b/scripts/commands/cluster/load.js similarity index 95% rename from scripts/commands/stream/load.js rename to scripts/commands/cluster/load.js index de15bde440..9c58905b7f 100644 --- a/scripts/commands/stream/load.js +++ b/scripts/commands/cluster/load.js @@ -15,7 +15,7 @@ const config = { debug: options.debug } -const LOGS_DIR = process.env.LOGS_DIR || 'scripts/logs/stream/load' +const LOGS_DIR = process.env.LOGS_DIR || 'scripts/logs/cluster/load' async function main() { logger.info('starting...') diff --git a/tests/__data__/expected/logs/stream/load/cluster_1.log b/tests/__data__/expected/logs/cluster/load/cluster_1.log similarity index 100% rename from tests/__data__/expected/logs/stream/load/cluster_1.log rename to tests/__data__/expected/logs/cluster/load/cluster_1.log diff --git a/tests/__data__/input/logs/stream/load/cluster_1.log b/tests/__data__/input/logs/cluster/load/cluster_1.log similarity index 100% rename from tests/__data__/input/logs/stream/load/cluster_1.log rename to tests/__data__/input/logs/cluster/load/cluster_1.log diff --git a/tests/commands/stream/load.test.js b/tests/commands/cluster/load.test.js similarity index 72% rename from tests/commands/stream/load.test.js rename to tests/commands/cluster/load.test.js index 4c08b01a93..fa94b07b68 100644 --- a/tests/commands/stream/load.test.js +++ b/tests/commands/cluster/load.test.js @@ -7,14 +7,14 @@ beforeEach(() => { fs.copyFileSync('tests/__data__/input/database/streams.db', 'tests/__data__/output/streams.db') const stdout = execSync( - 'DB_DIR=tests/__data__/output LOGS_DIR=tests/__data__/output/logs/stream/load node scripts/commands/stream/load.js --cluster-id=1 --timeout=1', + 'DB_DIR=tests/__data__/output LOGS_DIR=tests/__data__/output/logs/cluster/load node scripts/commands/cluster/load.js --cluster-id=1 --timeout=1', { encoding: 'utf8' } ) }) it('return results', () => { - expect(content('tests/__data__/output/logs/stream/load/cluster_1.log')).toEqual( - content('tests/__data__/expected/logs/stream/load/cluster_1.log') + expect(content('tests/__data__/output/logs/cluster/load/cluster_1.log')).toEqual( + content('tests/__data__/expected/logs/cluster/load/cluster_1.log') ) })