Closed antstalepresh closed 3 months ago
This is a newly added safety check implemented in wasmvm 2. The idea is that no two wasmvm.VM instances should run on the same directory at the same time. When you write tests that run in parallel, you need to use a different directory for each test. So more or less create a temp dir here for each test:
wasmDir := filepath.Join(homePath, "wasm")
Thanks for your input, closing the issue.
When writing test, test suite is used to simplify testing code. Here's the architecture of test.
When Test1 and Test2 are run individually, it works fine, but when they are run both, it is returning following issue.
Would be nice to get recommendation for the best way to fix the issue in test suite.