diff options
author | Yash Tibrewal <yashkt@google.com> | 2018-05-15 11:21:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-15 11:21:46 -0700 |
commit | 7b79130cbf889205dbe1c9f708a1d795fbb9522b (patch) | |
tree | 4631c060ee0e0c74f57ae69b619bba39a73adc45 /test/core/end2end/tests | |
parent | 7a94e535f80f6bb250b2c96e2106fae57d4b2d8d (diff) | |
parent | e9207ab2748c2c42e2e1b355dc13f6bd02e40c3f (diff) |
Merge pull request #15280 from yashykt/statsrem
Remove stats collection from opt builds
Diffstat (limited to 'test/core/end2end/tests')
-rw-r--r-- | test/core/end2end/tests/simple_request.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/core/end2end/tests/simple_request.cc b/test/core/end2end/tests/simple_request.cc index 2d6ccad0ec..941d9ae319 100644 --- a/test/core/end2end/tests/simple_request.cc +++ b/test/core/end2end/tests/simple_request.cc @@ -235,12 +235,14 @@ static void simple_request_body(grpc_end2end_test_config config, if (config.feature_mask & FEATURE_MASK_SUPPORTS_REQUEST_PROXYING) { expected_calls *= 2; } +#if defined(GRPC_COLLECT_STATS) || !defined(NDEBUG) GPR_ASSERT(after->counters[GRPC_STATS_COUNTER_CLIENT_CALLS_CREATED] - before->counters[GRPC_STATS_COUNTER_CLIENT_CALLS_CREATED] == expected_calls); GPR_ASSERT(after->counters[GRPC_STATS_COUNTER_SERVER_CALLS_CREATED] - before->counters[GRPC_STATS_COUNTER_SERVER_CALLS_CREATED] == expected_calls); +#endif /* defined(GRPC_COLLECT_STATS) || !defined(NDEBUG) */ gpr_free(before); gpr_free(after); } |