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

Added cancel_after_first_response test #1678

Merged
merged 3 commits into from
May 20, 2015

Conversation

murgatroid99
Copy link
Member

No description provided.

// 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;
Copy link
Contributor

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

Copy link
Member Author

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.
Copy link
Contributor

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.

Copy link
Member Author

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.

@jcanizales
Copy link
Contributor

Is the policy now to wait for Travis, even if we know it shouldn't be affected, to see if there are flaky tests?

@murgatroid99
Copy link
Member Author

I think that since we know the tests won't be affected by this change, you can cancel the tests and merge.

jcanizales added a commit that referenced this pull request May 20, 2015
@jcanizales jcanizales merged commit 0e6cd6c into grpc:master May 20, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Jan 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants