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

test is flaky #8

Open
Simon-Laux opened this issue May 21, 2023 · 1 comment · May be fixed by #10
Open

test is flaky #8

Simon-Laux opened this issue May 21, 2023 · 1 comment · May be fixed by #10

Comments

@Simon-Laux
Copy link
Member

Simon-Laux commented May 21, 2023

yarn test sometimes work but sometimes it exits with an error code.
I did not find the source of this issue.

@Simon-Laux Simon-Laux linked a pull request May 21, 2023 that will close this issue
@Simon-Laux
Copy link
Member Author

The bug is inside of __test__/index.spec.ts, the other test (__test__/low_level.spec.ts) works.

I found out that if we run ava with --no-worker-threads it works every time locally.
So this is somewhere in the combination of ava's worker threads and the JsonRpcClient.
Maybe something about the event emitter?

Simon-Laux added a commit that referenced this issue May 21, 2023
add `--no-worker-threads` argument to ava
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 a pull request may close this issue.

1 participant