You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the CI tests against node 10.1. a number of the tests cause deprecation warnings, but the test-gzip fails test 'do not try to pipe responses with no body'
The particular failing test in test-gzip creates a test server and then tries getting 105, 204 and 304 responses for it in order to test empty responses (lines 270-295 in test-gzip.js). If I comment out the '105' part of the test it passes.
The reason the 105 test fails appears to be as a result of this issue/fix in node nodejs/node#9282 nodejs/node#18033
I think as a result of the change, Informational responses leave the response open for another response to be written later - so doing
res.writeHead(105, ...
res.end()
no longer leaves the response in the right state.
Context
Means that any pull request submitted will not get a green build.
The text was updated successfully, but these errors were encountered:
Looks like this is already being looked at, with this commit: 0c5db42 ("Skip status code 105 on Node > v10").
So I'll close this issue once that's merged in!
Summary
When running the CI tests against node 10.1. a number of the tests cause deprecation warnings, but the test-gzip fails test 'do not try to pipe responses with no body'
Simplest Example to Reproduce
As above, just run CI tests against node 10.1
Possible Solution
The particular failing test in test-gzip creates a test server and then tries getting 105, 204 and 304 responses for it in order to test empty responses (lines 270-295 in test-gzip.js). If I comment out the '105' part of the test it passes.
The reason the 105 test fails appears to be as a result of this issue/fix in node
nodejs/node#9282
nodejs/node#18033
I think as a result of the change, Informational responses leave the response open for another response to be written later - so doing
no longer leaves the response in the right state.
Context
Means that any pull request submitted will not get a green build.
The text was updated successfully, but these errors were encountered: