Skip to content

Ava shared workers #3110

Discussion options

You must be logged in to vote

Thank you @novemberborn

  1. I cannot upgrade to ava 4 because my Node.js version is stuck at v12.16.1 ( for UT alone i'm planning to run it in v12.17 because ava requires it )

  2. Please correct me if i'm wrong, are you saying await bootstrap() function which actually starts the server and stores inside sharedContexts map will have race condition if both test files are running simultaneously ? If that is the case based on your workaround provided by you i have to remove the await which surrounds the bootstrap() function, but if i do that, i will run into these errors

  3. Error: #<Promise> could not be cloned

  4. Server object cannot be cloned using zlib

  5. Also if each test file awaits the server …

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
10 replies
@sathishsoundharajan
Comment options

@sathishsoundharajan
Comment options

@sathishsoundharajan
Comment options

@novemberborn
Comment options

@sathishsoundharajan
Comment options

Answer selected by sathishsoundharajan
Comment options

You must be logged in to vote
2 replies
@novemberborn
Comment options

@sathishsoundharajan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants