Skip to content

Conversation

@flyte
Copy link
Contributor

@flyte flyte commented Jun 21, 2019

Summary

Fixes #451

Happy to have a discussion on the right solution for this. It works as-is but I expect there's something I haven't thought of. I'm on the #sdk-python-slack channel if you want to talk in real time.

Requirements (place an x in each [ ])

@codecov
Copy link

codecov bot commented Jun 21, 2019

Codecov Report

Merging #453 into master will decrease coverage by 1.25%.
The diff coverage is 20%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #453      +/-   ##
==========================================
- Coverage   57.08%   55.82%   -1.26%     
==========================================
  Files           6        6              
  Lines         720      738      +18     
  Branches       39       41       +2     
==========================================
+ Hits          411      412       +1     
- Misses        301      317      +16     
- Partials        8        9       +1
Impacted Files Coverage Δ
slack/rtm/client.py 83.33% <20%> (-8.98%) ⬇️

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 04a59ab...76b0d13. Read the comment docs.

@RodneyU215 RodneyU215 self-requested a review June 25, 2019 04:59
@RodneyU215 RodneyU215 added Priority: High bug M-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documented Version: 2x labels Jun 25, 2019
Copy link
Contributor

@RodneyU215 RodneyU215 left a comment

Choose a reason for hiding this comment

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

Thanks @flyte for helping get this fixed up. I've add a few minor comments once these are addressed and we add unit tests I believe we can get this merged in.

# True
message = await self._websocket.receive(timeout=1)
except asyncio.TimeoutError:
if not self._websocket.closed:
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd love to see some unit tests added for this condition.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've spent some time trying to mock up enough to get this tested but I've come up short I'm afraid, and I need to get on with some work. Do you have any bright ideas about how to test this section?

@RodneyU215
Copy link
Contributor

Also just an FYI, I'll be merging PR #446 which modifies the same files so a rebase will likely be needed.

@flyte
Copy link
Contributor Author

flyte commented Jun 26, 2019

I've rebased the PR onto master, and added that error handler.

@RodneyU215
Copy link
Contributor

@flyte Thanks for all of the work you've done on this. Let's merge this as-is for now and I'll work on adding some additional tests in a subsequent PR.

@RodneyU215 RodneyU215 merged commit 66017f3 into slackapi:master Jun 29, 2019
@DaAwesomeP
Copy link

@RodneyU215 what is the timeline to a patch release that includes this bugfix?

@RodneyU215
Copy link
Contributor

RodneyU215 commented Jun 30, 2019 via email

This was referenced Jul 1, 2019
jgillmanjr added a commit to jgillmanjr/avnSlackBot that referenced this pull request Aug 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug M-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documented Version: 2x

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatic websocket reconnection/disconnect detection not working

3 participants