Skip to content

Remove flakiness in tests#156

Merged
kudima03 merged 1 commit into
kudima03:mainfrom
StanislavKozachenko:fix/flaky-datetime-collection-tests
May 15, 2026
Merged

Remove flakiness in tests#156
kudima03 merged 1 commit into
kudima03:mainfrom
StanislavKozachenko:fix/flaky-datetime-collection-tests

Conversation

@StanislavKozachenko
Copy link
Copy Markdown
Contributor

Closes #61

@kudima03
Copy link
Copy Markdown
Owner

@StanislavKozachenko On what basis were the new values determined?

@StanislavKozachenko
Copy link
Copy Markdown
Contributor Author

@kudima03

The new bounds are based on the theoretical standard deviation of the uniform distribution (σ = (b - a) / √12) and the standard error of the sample std dev (SE = σ / √(2n)).

The original ranges had margins of only 1–2 SE,giving a ~10–30% chance of random failure.

The new ranges use a ±5 SE margin, keeping the tests meaningful while making false failures practically impossible.

Copy link
Copy Markdown
Owner

@kudima03 kudima03 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@StanislavKozachenko Thanks for contribution!

@kudima03 kudima03 merged commit 90625ce into kudima03:main May 15, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove flackiness in tests

2 participants