aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/channel
diff options
context:
space:
mode:
authorGravatar ncteisen <ncteisen@gmail.com>2018-10-02 16:00:53 -0700
committerGravatar ncteisen <ncteisen@gmail.com>2018-10-02 17:42:02 -0700
commitf9061852007cdef4b5e71dbe8f0b7ccc0874d3f9 (patch)
tree6a781d90e64c3f1c024f4cc1d9f6fab21468e655 /test/core/channel
parent242d6a58dc3cdf82a393c32e95fa6d2792ad04d1 (diff)
Shard channelz stats by CPU
Diffstat (limited to 'test/core/channel')
-rw-r--r--test/core/channel/channelz_test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/core/channel/channelz_test.cc b/test/core/channel/channelz_test.cc
index bcda30d9f2..b7b35aede4 100644
--- a/test/core/channel/channelz_test.cc
+++ b/test/core/channel/channelz_test.cc
@@ -49,8 +49,9 @@ class CallCountingHelperPeer {
public:
explicit CallCountingHelperPeer(CallCountingHelper* node) : node_(node) {}
grpc_millis last_call_started_millis() const {
+ CallCountingHelper::CounterData data = node_->Collect();
return (grpc_millis)gpr_atm_no_barrier_load(
- &node_->last_call_started_millis_);
+ &data.last_call_started_millis_);
}
private: