diff options
author | Yash Tibrewal <yashkt@google.com> | 2017-11-28 13:23:36 -0800 |
---|---|---|
committer | Yash Tibrewal <yashkt@google.com> | 2017-11-28 13:23:36 -0800 |
commit | 81fc8c9c336fab7a71b448f748a32d680301277c (patch) | |
tree | 5cd64fd191db0f87d59ef53768c1b6760b4f1654 /test/core/client_channel/uri_parser_test.cc | |
parent | 3285f4c7329bf4305133be74f88dd4b10d5e2052 (diff) |
Fix tests to call grpc_init and grpc_shutdown before using exec_ctx
Diffstat (limited to 'test/core/client_channel/uri_parser_test.cc')
-rw-r--r-- | test/core/client_channel/uri_parser_test.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/core/client_channel/uri_parser_test.cc b/test/core/client_channel/uri_parser_test.cc index 1694f2363d..33cf82d17c 100644 --- a/test/core/client_channel/uri_parser_test.cc +++ b/test/core/client_channel/uri_parser_test.cc @@ -20,6 +20,7 @@ #include <string.h> +#include <grpc/grpc.h> #include <grpc/support/log.h> #include "src/core/lib/iomgr/exec_ctx.h" @@ -119,6 +120,7 @@ static void test_query_parts() { int main(int argc, char** argv) { grpc_test_init(argc, argv); + grpc_init(); test_succeeds("http://www.google.com", "http", "www.google.com", "", "", ""); test_succeeds("dns:///foo", "dns", "", "/foo", "", ""); test_succeeds("http://www.google.com:90", "http", "www.google.com:90", "", "", @@ -146,5 +148,6 @@ int main(int argc, char** argv) { test_fails("http://foo?bar#lol#"); test_query_parts(); + grpc_shutdown(); return 0; } |