-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
fix(core): Ensure task runner server closes websocket connection correctly #11633
Conversation
…ectly The task runner server was erroring out when attempting to close the websocket connection with `100` which is not a [valid error code](https://github.com/Luka967/websocket-close-codes). https://linear.app/n8n/issue/PAY-2189
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for fixing this 🙏 The 100
was probably a typo and should have been 1000
. We can also omit the code entirely
response.writeHead(200); | ||
expect(ws.close).not.toHaveBeenCalled(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: This could be it's own test case as the test case name implies we are testing only status code >200
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
n8n Run #7791
Run Properties:
|
Project |
n8n
|
Branch Review |
pay-2189
|
Run status |
Passed #7791
|
Run duration | 04m 24s |
Commit |
726639ac33: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 ivov 🗃️ e2e/*
|
Committer | Iván Ovejero |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
2
|
Skipped |
0
|
Passing |
466
|
View all changes introduced in this branch ↗︎ |
✅ All Cypress E2E specs passed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
✅ All Cypress E2E specs passed |
Got released with |
The task runner server was erroring out when attempting to close the websocket connection with
100
which is not a valid error code.https://linear.app/n8n/issue/PAY-2189