Change priority for adding the filter in the filter_call_init_fails test.

pull/7024/head
Mark D. Roth 9 years ago
parent d60b91dde0
commit 51d0022448
  1. 8
      test/core/end2end/tests/filter_call_init_fails.c

@ -238,16 +238,16 @@ static const grpc_channel_filter test_filter = {
static bool maybe_add_filter(grpc_channel_stack_builder *builder, void *arg) {
if (g_enable_filter) {
return grpc_channel_stack_builder_prepend_filter(builder, &test_filter,
NULL, NULL);
return grpc_channel_stack_builder_append_filter(builder, &test_filter,
NULL, NULL);
} else {
return true;
}
}
static void init_plugin(void) {
grpc_channel_init_register_stage(GRPC_SERVER_CHANNEL, 0, maybe_add_filter,
NULL);
grpc_channel_init_register_stage(GRPC_SERVER_CHANNEL, MAX_INT,
maybe_add_filter, NULL);
}
static void destroy_plugin(void) {}

Loading…
Cancel
Save