Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Garbled program names when using concurrent jest tests #2

Open
kevinheavey opened this issue Aug 11, 2023 · 0 comments
Open

Garbled program names when using concurrent jest tests #2

kevinheavey opened this issue Aug 11, 2023 · 0 comments

Comments

@kevinheavey
Copy link
Owner

When this repo's tests are run concurrently (the default Jest option), around 5% of the time a test will fail because the program name is garbled:. The error looks like this: Program file data not available for ��w�ld (11111111111111111111111111111112).

Logging reveals that the program name is fine when startInner is called in JS, but the name is already garbled when logged at the top of the Rust start function. So it seems to be a problem with sending the string from JS to Rust.

When you use the --runInBand Jest flag this doesn't happen.

I tried reproducing with just an async function that takes an AddedProgram[] parameter like the start function does, but the strings in this function never got garbled in testing.

This could be specific to Jest or it may happen with other testing frameworks.

kevinheavey pushed a commit that referenced this issue Aug 16, 2023
Create copyAccounts.test.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant