deltachat / napi-jsonrpc

use jsonrpc over napi.rs in nodejs
3 stars 0 forks source link

test is flaky #8

Open Simon-Laux opened 1 year ago

Simon-Laux commented 1 year ago

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

Simon-Laux commented 1 year ago

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?