-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Clear internal stream map on connection close. #12212
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
Conversation
Needs to be updated based on conversation in #12135, going to make a draft for now |
assertTrue(hubConnection.getStreamMap().keySet().contains("2")); | ||
|
||
// Verify that we clear the entry from the stream map after we clear the first stream. | ||
stream.onComplete(); |
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.
Do we verify the streamMap entry gets removed when sendHubMessage completes with an error?
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.
Was just thinking this as I was headed to the restroom. I'll complete the second stream with an error and verify.
@@ -109,6 +109,11 @@ void setTickRate(long tickRateInMilliseconds) { | |||
this.tickRate = tickRateInMilliseconds; | |||
} | |||
|
|||
// For testing purposes | |||
Map<String,Observable> getStreamMap() { |
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: space
Fixes: #12135
Clears our internal stream map on close.