Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

fix(tests): remove Math.random from tests #2431

Merged
merged 2 commits into from
Sep 5, 2019
Merged

Conversation

lidel
Copy link
Member

@lidel lidel commented Sep 5, 2019

This PR:

  • replaces Math.random() with hat()
  • increases timeout of bitswap tests that fail often

Motivation

CI often fails in tests that use Math.random.
I suspect Math.random is not random enough on some platforms.
Let's see if this PR pass without a problem

This replaces Math.random() with hat()

License: MIT
Signed-off-by: Marcin Rataj <[email protected]>
License: MIT
Signed-off-by: Marcin Rataj <[email protected]>
@lidel
Copy link
Member Author

lidel commented Sep 5, 2019

I've re-run rests about three times and it seems bitswap tests don't fail (or don't fail that often).

@alanshaw as this is a cosmetic change, should be safe to merge.

@lidel lidel marked this pull request as ready for review September 5, 2019 23:09
@alanshaw alanshaw merged commit 60bf020 into master Sep 5, 2019
@alanshaw alanshaw deleted the fix/remove-math-random branch September 5, 2019 23:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants