aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/channel
diff options
context:
space:
mode:
authorGravatar ncteisen <ncteisen@gmail.com>2018-05-11 13:05:16 -0400
committerGravatar ncteisen <ncteisen@gmail.com>2018-05-17 15:07:53 -0700
commit96bc3825a391842dd39493d825428d8cc102a76f (patch)
treeb4bf30b282e4c5fef713831a6e4eb9768c0c058a /test/core/channel
parent3be52f9bccf48177944b47228a176233d482c67d (diff)
Make registry generic
Diffstat (limited to 'test/core/channel')
-rw-r--r--test/core/channel/channel_trace_test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/core/channel/channel_trace_test.cc b/test/core/channel/channel_trace_test.cc
index b91956a663..78964b2d72 100644
--- a/test/core/channel/channel_trace_test.cc
+++ b/test/core/channel/channel_trace_test.cc
@@ -99,7 +99,8 @@ void ValidateTraceDataMatchedUuidLookup(RefCountedPtr<ChannelTrace> tracer) {
intptr_t uuid = tracer->GetUuid();
if (uuid == -1) return; // Doesn't make sense to lookup if tracing disabled
char* tracer_json_str = tracer->RenderTrace();
- ChannelTrace* uuid_lookup = ChannelzRegistry::Default()->Get(uuid);
+ ChannelTrace* uuid_lookup =
+ ChannelzRegistry::Default()->Get<ChannelTrace>(uuid);
char* uuid_lookup_json_str = uuid_lookup->RenderTrace();
EXPECT_EQ(strcmp(tracer_json_str, uuid_lookup_json_str), 0);
gpr_free(tracer_json_str);