Skip to content

Commit

Permalink
Prevent clashing redis namespaces in tests (#1764)
Browse files Browse the repository at this point in the history
prevent bday paradox in tests
  • Loading branch information
dholms authored Oct 24, 2023
1 parent f710d45 commit 4122109
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/dev-env/src/bsky.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class TestBsky {
})
// indexer
const ns = cfg.dbPostgresSchema
? await randomIntFromSeed(cfg.dbPostgresSchema, 10000)
? await randomIntFromSeed(cfg.dbPostgresSchema, 1000000)
: undefined
const indexerCfg = new bsky.IndexerConfig({
version: '0.0.0',
Expand Down Expand Up @@ -200,7 +200,7 @@ export async function getIngester(
opts: { name: string } & Partial<bsky.IngesterConfigValues>,
) {
const { name, ...config } = opts
const ns = name ? await randomIntFromSeed(name, 10000) : undefined
const ns = name ? await randomIntFromSeed(name, 1000000) : undefined
const cfg = new bsky.IngesterConfig({
version: '0.0.0',
redisHost: process.env.REDIS_HOST || '',
Expand Down Expand Up @@ -234,7 +234,7 @@ export async function getIndexers(
},
): Promise<BskyIndexers> {
const { name, ...config } = opts
const ns = name ? await randomIntFromSeed(name, 10000) : undefined
const ns = name ? await randomIntFromSeed(name, 1000000) : undefined
const baseCfg: bsky.IndexerConfigValues = {
version: '0.0.0',
didCacheStaleTTL: HOUR,
Expand Down

0 comments on commit 4122109

Please sign in to comment.