diff options
author | Makarand Dharmapurikar <makarandd@makarand-linux.mtv.corp.google.com> | 2016-08-29 13:05:31 -0700 |
---|---|---|
committer | Makarand Dharmapurikar <makarandd@makarand-linux.mtv.corp.google.com> | 2016-08-29 13:05:31 -0700 |
commit | f1e079377bf5b099298fa036af1c952fa672cf47 (patch) | |
tree | 0e290162ccf79d079a68104ee86b8eb03c0dc7b2 /test/core | |
parent | 015180a8f4774bf7ba3420aae5a6836e996e9ed5 (diff) |
test that cacheable flag is set
Diffstat (limited to 'test/core')
-rw-r--r-- | test/core/end2end/tests/simple_cacheable_request.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/core/end2end/tests/simple_cacheable_request.c b/test/core/end2end/tests/simple_cacheable_request.c index 95d43bf439..0bf5185f3e 100644 --- a/test/core/end2end/tests/simple_cacheable_request.c +++ b/test/core/end2end/tests/simple_cacheable_request.c @@ -235,6 +235,7 @@ static void test_cacheable_request_response_with_metadata_and_payload( GPR_ASSERT(0 == strcmp(details, "xyz")); GPR_ASSERT(0 == strcmp(call_details.method, "/foo")); GPR_ASSERT(0 == strcmp(call_details.host, "foo.test.google.fr")); + GPR_ASSERT(GRPC_INITIAL_METADATA_CACHEABLE_REQUEST & call_details.flags); GPR_ASSERT(was_cancelled == 0); GPR_ASSERT(byte_buffer_eq_string(request_payload_recv, "hello world")); GPR_ASSERT(byte_buffer_eq_string(response_payload_recv, "hello you")); |