-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Added cancel_after_first_response test #1678
Added cancel_after_first_response test #1678
Conversation
// A buffered pipe to which we never write any value acts as a writer that just hangs. | ||
GRXBufferedPipe *requestsBuffer = [[GRXBufferedPipe alloc] init]; | ||
|
||
__block bool receivedResponse = false; |
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.
s/bool/BOOL, s/false/NO
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.
done
- (void)testCancelAfterFirstResponseRPC { | ||
__weak XCTestExpectation *expectation = [self expectationWithDescription:@"CancelAfterFirstResponse"]; | ||
|
||
// A buffered pipe to which we never write any value acts as a writer that just hangs. |
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.
But you are writing some value! :) Instead, you can e.g. add a comment before calling cancel, saying explicitly that we don't tell the requestBuffer that we're done.
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.
That was some overzealous copying. I fixed it.
Is the policy now to wait for Travis, even if we know it shouldn't be affected, to see if there are flaky tests? |
I think that since we know the tests won't be affected by this change, you can cancel the tests and merge. |
Added cancel_after_first_response test
No description provided.