tests
This commit is contained in:
parent
3a7254708e
commit
b63e58784c
41 changed files with 5762 additions and 4477 deletions
|
|
@ -7,10 +7,12 @@ export function getRedisConnection(config: RedisConfig) {
|
|||
const isTest = process.env.NODE_ENV === 'test' || process.env['BUNIT'] === '1';
|
||||
|
||||
// In test mode, always use localhost
|
||||
const testConfig = isTest ? {
|
||||
host: 'localhost',
|
||||
port: 6379,
|
||||
} : config;
|
||||
const testConfig = isTest
|
||||
? {
|
||||
host: 'localhost',
|
||||
port: 6379,
|
||||
}
|
||||
: config;
|
||||
|
||||
const baseConfig = {
|
||||
host: testConfig.host,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue