From 4c78ed4cb8d69b30195de0b745a92f369ba21f4d Mon Sep 17 00:00:00 2001 From: dholms Date: Mon, 23 Oct 2023 17:40:12 -0500 Subject: [PATCH] prevent bday paradox in tests --- packages/dev-env/src/bsky.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/dev-env/src/bsky.ts b/packages/dev-env/src/bsky.ts index a99385b755b..ac09e88419d 100644 --- a/packages/dev-env/src/bsky.ts +++ b/packages/dev-env/src/bsky.ts @@ -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', @@ -200,7 +200,7 @@ export async function getIngester( opts: { name: string } & Partial, ) { 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 || '', @@ -234,7 +234,7 @@ export async function getIndexers( }, ): Promise { 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,