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

fixed node-slack-sdk issue 1156, socketMode connection error not bein… #764

Merged
merged 1 commit into from Jan 21, 2021

Conversation

stevengill
Copy link
Member

…g surfaced

Summary

Fixes slackapi/node-slack-sdk#1156

Requirements (place an x in each [ ])

@stevengill stevengill added the bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented label Jan 21, 2021
@stevengill stevengill self-assigned this Jan 21, 2021
@codecov
Copy link

codecov bot commented Jan 21, 2021

Codecov Report

Merging #764 (6f44b25) into main (dfc61e7) will increase coverage by 0.24%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #764      +/-   ##
==========================================
+ Coverage   65.00%   65.24%   +0.24%     
==========================================
  Files          11       11              
  Lines        1086     1082       -4     
  Branches      320      320              
==========================================
  Hits          706      706              
+ Misses        321      317       -4     
  Partials       59       59              
Impacted Files Coverage Δ
src/receivers/SocketModeReceiver.ts 9.80% <0.00%> (+0.71%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dfc61e7...6f44b25. Read the comment docs.

Comment on lines +151 to +153
public start(): Promise<void | WebAPICallResult> {
// start socket mode client
return this.client.start();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice use of the OR instead of updating it to only WebAPICallResult.

Do we need to add any test coverage for this update?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need test coverage? Yes
Do we have tests for SocketModeReceiver yet?....no :(

@stevengill stevengill merged commit 93964e0 into slackapi:main Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[socket-mode] webClient error is swallowed
2 participants