Update load-streams.js

This commit is contained in:
Aleksandr Statciuk
2022-02-05 07:29:53 +03:00
parent 7c8f5612ba
commit 2aa5766506
4 changed files with 8 additions and 8 deletions

View File

@@ -5,10 +5,10 @@ const { execSync } = require('child_process')
beforeEach(() => {
fs.emptyDirSync('tests/__data__/output')
fs.emptyDirSync('tests/__data__/temp')
fs.copyFileSync('tests/__data__/input/channels.db', 'tests/__data__/temp/channels.db')
fs.copyFileSync('tests/__data__/input/streams.db', 'tests/__data__/temp/streams.db')
const stdout = execSync(
'DB_FILEPATH=tests/__data__/temp/channels.db LOGS_PATH=tests/__data__/output/logs node scripts/commands/load-streams.js --cluster-id=1 --timeout=1',
'DB_FILEPATH=tests/__data__/temp/streams.db LOGS_PATH=tests/__data__/output/logs/load-streams node scripts/commands/load-streams.js --cluster-id=1 --timeout=1',
{ encoding: 'utf8' }
)
})