File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import * as t from 'lib0/testing'
33import * as api from '../src/api.js'
44import * as encoding from 'lib0/encoding'
55import * as promise from 'lib0/promise'
6+ import * as env from 'lib0/environment'
67import * as redis from 'redis'
78import { prevClients , store } from './utils.js'
89
@@ -14,7 +15,7 @@ const redisPrefix = 'ytests'
1415const createTestCase = async tc => {
1516 await promise . all ( prevClients . map ( c => c . destroy ( ) ) )
1617 prevClients . length = 0
17- const redisClient = redis . createClient ( { url : api . redisUrl } )
18+ const redisClient = redis . createClient ( { url : env . ensureConf ( 'ysr-redis' ) } )
1819 await redisClient . connect ( )
1920 // flush existing content
2021 const keysToDelete = await redisClient . keys ( redisPrefix + ':*' )
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import * as array from 'lib0/array'
77import * as redis from 'redis'
88import * as time from 'lib0/time'
99import * as jwt from 'lib0/crypto/jwt'
10+ import * as env from 'lib0/environment'
1011import * as utils from './utils.js'
1112import { SocketIOProvider } from '../src/y-socket-io/client.js'
1213
@@ -66,7 +67,7 @@ const createApiClient = async () => {
6667const createTestCase = async ( tc ) => {
6768 await promise . all ( utils . prevClients . map ( ( c ) => c . destroy ( ) ) )
6869 utils . prevClients . length = 0
69- const redisClient = redis . createClient ( { url : api . redisUrl } )
70+ const redisClient = redis . createClient ( { url : env . ensureConf ( 'ysr-redis' ) } )
7071 await redisClient . connect ( )
7172 // flush existing content
7273 const keysToDelete = await redisClient . keys ( utils . redisPrefix + ':*' )
You can’t perform that action at this time.
0 commit comments