aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-01-13 16:49:44 -0800
committerGravatar Craig Tiller <ctiller@google.com>2015-01-13 16:49:44 -0800
commitfc84e7b28e4a506393381f874708fee5f5411c91 (patch)
tree2a1d653ef0253bb740b28cd5a42754d37613eb0e
parent9c0307bd4fe5528f05b301d19ad2c72472b26b3f (diff)
Fix tag matching bug
-rw-r--r--test/core/end2end/tests/max_concurrent_streams.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/core/end2end/tests/max_concurrent_streams.c b/test/core/end2end/tests/max_concurrent_streams.c
index 57e271834c..5a0d458d20 100644
--- a/test/core/end2end/tests/max_concurrent_streams.c
+++ b/test/core/end2end/tests/max_concurrent_streams.c
@@ -202,7 +202,8 @@ static void test_max_concurrent_streams(grpc_end2end_test_config config) {
GPR_ASSERT(ev->data.invoke_accepted == GRPC_OP_OK);
/* The /alpha or /beta calls started above could be invoked (but NOT both);
* check this here */
- live_call = (int)(gpr_intptr)ev->tag;
+ /* We'll get tag 303 or 403, we want 300, 400 */
+ live_call = ((int)(gpr_intptr)ev->tag) - 3;
grpc_event_finish(ev);
cq_expect_server_rpc_new(v_server, &s1, tag(100),