Rename to cluster/load.js

This commit is contained in:
Aleksandr Statciuk 2022-02-12 01:58:11 +03:00
parent c03095f762
commit 97b9421cb1
4 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ const config = {
debug: options.debug 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() { async function main() {
logger.info('starting...') logger.info('starting...')

View File

@ -7,14 +7,14 @@ beforeEach(() => {
fs.copyFileSync('tests/__data__/input/database/streams.db', 'tests/__data__/output/streams.db') fs.copyFileSync('tests/__data__/input/database/streams.db', 'tests/__data__/output/streams.db')
const stdout = execSync( 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' } { encoding: 'utf8' }
) )
}) })
it('return results', () => { it('return results', () => {
expect(content('tests/__data__/output/logs/stream/load/cluster_1.log')).toEqual( expect(content('tests/__data__/output/logs/cluster/load/cluster_1.log')).toEqual(
content('tests/__data__/expected/logs/stream/load/cluster_1.log') content('tests/__data__/expected/logs/cluster/load/cluster_1.log')
) )
}) })