diff options
author | Craig Tiller <ctiller@google.com> | 2016-05-06 14:26:12 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-05-06 14:26:12 -0700 |
commit | f707d62db625e3929680d165f2fbc67f9c8d3f9c (patch) | |
tree | 0741e3319b8a90ffe177752e8743db416de4f066 /test/core/end2end/tests | |
parent | ddad97899654c1eb3805ec165e842f8f465702a1 (diff) |
Convert tests to new error scheme
Diffstat (limited to 'test/core/end2end/tests')
-rw-r--r-- | test/core/end2end/tests/filter_causes_close.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/core/end2end/tests/filter_causes_close.c b/test/core/end2end/tests/filter_causes_close.c index 99049aa6bd..405e75294d 100644 --- a/test/core/end2end/tests/filter_causes_close.c +++ b/test/core/end2end/tests/filter_causes_close.c @@ -202,10 +202,11 @@ typedef struct { grpc_closure *recv_im_ready; } call_data; typedef struct { uint8_t unused; } channel_data; -static void recv_im_ready(grpc_exec_ctx *exec_ctx, void *arg, bool success) { +static void recv_im_ready(grpc_exec_ctx *exec_ctx, void *arg, + grpc_error *error) { grpc_call_element *elem = arg; call_data *calld = elem->call_data; - if (success) { + if (error == GRPC_ERROR_NONE) { // close the stream with an error. gpr_slice message = gpr_slice_from_copied_string("Random failure that's not preventable."); |