near / near-workspaces-js

Write tests once, run them both on NEAR TestNet and a controlled NEAR Sandbox local environment
https://near.github.io/near-workspaces-js/
GNU General Public License v3.0
42 stars 22 forks source link

fix concurrency issues #56

Closed chadoh closed 2 years ago

chadoh commented 2 years ago

When using test.concurrent with multiple tests, if one test encounters an error from a contract call, multiple tests can fail with that same error.

To reproduce:

Note that near-runner-jest uses test.concurrent by default. We want to make near-runner-jest our recommended way to use near-runner for now, so we should fix this issue before we make a big announcement.

We need to add a test that exercises this edge case to near-runner-js.