From 420b9ca4adc20535096301dfa9724266c3bce439 Mon Sep 17 00:00:00 2001 From: Jonathan Norris Date: Fri, 13 Dec 2024 15:45:11 -0500 Subject: [PATCH] fix: test failing from distribution % --- .../__tests__/bucketing/bucketing.test.ts | 4 ++-- lib/shared/bucketing/__tests__/bucketing.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/shared/bucketing-assembly-script/__tests__/bucketing/bucketing.test.ts b/lib/shared/bucketing-assembly-script/__tests__/bucketing/bucketing.test.ts index 3cfc976ab..3d5e44a7e 100644 --- a/lib/shared/bucketing-assembly-script/__tests__/bucketing/bucketing.test.ts +++ b/lib/shared/bucketing-assembly-script/__tests__/bucketing/bucketing.test.ts @@ -153,8 +153,8 @@ describe('User Hashing and Bucketing', () => { ], } - // run 100,000 times to get a good distribution - for (let i = 0; i < 100000; i++) { + // run 200,000 times to get a good distribution + for (let i = 0; i < 200000; i++) { const user_id = uuid.v4() const { bucketingHash } = generateBoundedHashes( user_id, diff --git a/lib/shared/bucketing/__tests__/bucketing.test.ts b/lib/shared/bucketing/__tests__/bucketing.test.ts index 1733e27cc..e622c6f21 100644 --- a/lib/shared/bucketing/__tests__/bucketing.test.ts +++ b/lib/shared/bucketing/__tests__/bucketing.test.ts @@ -32,8 +32,8 @@ describe('User Hashing and Bucketing', () => { ], } - // run 100,000 times to get a good distribution - times(100000, () => { + // run 200,000 times to get a good distribution + times(200000, () => { const user_id = uuid.v4() const { bucketingHash } = generateBoundedHashes( user_id,