aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/surface
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2016-12-02 22:27:26 +0000
committerGravatar Mark D. Roth <roth@google.com>2016-12-02 22:27:26 +0000
commita0bb3742d9a51da96c182bf4b7eb68335678b7f6 (patch)
tree2e84e80a109b3966199005856dc8bb0e7cb3ecb9 /test/core/surface
parent0f4bbba82687420a2ebc56ea66021c29890472f0 (diff)
Fix server_chttp2_test.
Diffstat (limited to 'test/core/surface')
-rw-r--r--test/core/surface/server_chttp2_test.c5
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() {