diff options
author | Craig Tiller <ctiller@google.com> | 2016-12-06 15:05:59 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-12-06 15:05:59 -0800 |
commit | 397bff36b94bcb6d37c47c061b3bcc1e7c2d6a6d (patch) | |
tree | 3c27de51b7ce79e41bb003350940b84e22d8334b /test/core/surface | |
parent | 80a675005d4545cb50c54bc292339b69f2304b04 (diff) | |
parent | 7c9076ab7a58fd7d120d3e0d6a58a3a253535185 (diff) |
Merge github.com:grpc/grpc into slice_with_exec_ctx
Diffstat (limited to 'test/core/surface')
-rw-r--r-- | test/core/surface/server_chttp2_test.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/core/surface/server_chttp2_test.c b/test/core/surface/server_chttp2_test.c index 6310b6f00b..6c178abdad 100644 --- a/test/core/surface/server_chttp2_test.c +++ b/test/core/surface/server_chttp2_test.c @@ -44,8 +44,11 @@ #include "test/core/util/test_config.h" void test_unparsable_target(void) { - int port = grpc_server_add_insecure_http2_port(NULL, "["); + grpc_channel_args args = {0, NULL}; + grpc_server *server = grpc_server_create(&args, NULL); + int port = grpc_server_add_insecure_http2_port(server, "["); GPR_ASSERT(port == 0); + grpc_server_destroy(server); } void test_add_same_port_twice() { |