Rename to cluster/load.js
This commit is contained in:
parent
c03095f762
commit
97b9421cb1
@ -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...')
|
@ -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')
|
||||
)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user