-
Notifications
You must be signed in to change notification settings - Fork 513
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
flaky tests #682
Comments
Can't repro anymore. |
Another flaky test: FAIL test/redirect-request.js
✖ should be equal
t.equal(statusCode, 200)
----^
t.notOk(headers.location)
/*
--- expected
+++ actual
@@ -1,1 +1,1 @@
-200
+426
test: test/redirect-request.js should follow redirections when going cross origin
at:
line: 293
column: 5
file: test/redirect-request.js
type: Test
stack: |
Test.<anonymous> (test/redirect-request.js:293:5)
FAIL test/redirect-request.js
✖ should be equal
*/
t.equal(body, 'POST')
----^
})
--- expected
+++ actual
@@ -1,1 +1,1 @@
-POST
+Upgrade Required
test: test/redirect-request.js should follow redirections when going cross origin
at:
line: 306
column: 5
file: test/redirect-request.js
type: Test
stack: |
Test.<anonymous> (test/redirect-request.js:306:5) |
@dnlup see The above error, looks a bit like a parser error. The status message ( |
Strangely it has only happened once so far... there seems to be some kind of interference between requests (parallel test runs?) and the WASM module. Do we have any global state other than Do we need to load a separate instance of the WASM module for each client instance? |
In |
Feels related to #659. Do we have some form of state corruption somewhere? |
There are some parser error indeed. This the first time I see them though🤔. |
I'll check about the global state, before we had the Map to keep track of instances, but I doubt that's the problem. I'll see if loading different instances can bring some benefits. |
Another one:
|
I am not sure |
Expanding on this, I don't think we need different WASM instances. That is the reason why the parser reference is passed to every function call. |
I hope #687 solved this. |
* fix: use separate web assembly instance for every Client Refs: nodejs#682 Refs: nodejs#659 * fixup * fixup * fixup * fixup * fixup * fixup * fixup * fixup
The text was updated successfully, but these errors were encountered: