Commit 378d5ad2 authored by zhujiashun's avatar zhujiashun

refine comment

parent 01bad2ea
...@@ -650,8 +650,8 @@ TEST(NamingServiceTest, discovery_sanity) { ...@@ -650,8 +650,8 @@ TEST(NamingServiceTest, discovery_sanity) {
ASSERT_EQ(0, dc3.Register(dparam)); ASSERT_EQ(0, dc3.Register(dparam));
ASSERT_EQ(0, dc3.Cancel()); ASSERT_EQ(0, dc3.Cancel());
} }
// dtor of DiscoveryClient also calls Cancel(), we need to ensure that // Dtor of DiscoveryClient also calls Cancel(), we need to ensure that
// Cancel() is called only once. // Cancel() is called only once. One is from dc1, the other is from dc3.
ASSERT_EQ(svc.CancelCount(), 2); ASSERT_EQ(svc.CancelCount(), 2);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment