-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
core: Added changes to DelayedStream.setStream() should cancel the provided stream if not using it #11969
base: master
Are you sure you want to change the base?
Conversation
…ovided stream if not using it
@@ -271,14 +272,41 @@ public void uncaughtException(Thread t, Throwable e) { | |||
verifyNoMoreInteractions(mockRealStream); | |||
} | |||
|
|||
@Test | |||
public void newStreamThenShutDownNow() { |
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.
append test with UT method name -> testNewStreamThenShutDownNow()
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.
Fixed.
ClientStream stream = delayedTransport.newStream( | ||
method, new Metadata(), CallOptions.DEFAULT, tracers); | ||
stream.start(streamListener); | ||
assertEquals(1,delayedTransport.getPendingStreamsCount()); |
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.
add an empty line above asserts statements in all applicable places.
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.
Fixed.
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.
Added some minor comments, please check.
…ovided stream if not using it
return null; | ||
} | ||
|
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.
remove an empty line here
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.
Fixed.
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.
Changes LGTM
core: Added changes to DelayedStream.setStream() should cancel the provided stream if not using it
Fixes: #1537