@@ -1160,6 +1160,7 @@ def _make_one(
11601160 @CrossSync .pytest
11611161 async def test_ctor (self ):
11621162 from google .cloud .bigtable .data ._helpers import _WarmedInstanceKey
1163+ from google .cloud .bigtable .data ._metrics import BigtableClientSideMetricsController
11631164
11641165 expected_table_id = "table-id"
11651166 expected_instance_id = "instance-id"
@@ -1201,6 +1202,8 @@ async def test_ctor(self):
12011202 instance_key = _WarmedInstanceKey (table .instance_name , table .app_profile_id )
12021203 assert instance_key in client ._active_instances
12031204 assert client ._instance_owners [instance_key ] == {id (table )}
1205+ assert isinstance (table ._metrics , BigtableClientSideMetricsController )
1206+ assert table ._metrics .interceptor == client ._metrics_interceptor
12041207 assert table .default_operation_timeout == expected_operation_timeout
12051208 assert table .default_attempt_timeout == expected_attempt_timeout
12061209 assert (
@@ -1490,6 +1493,7 @@ def _make_one(
14901493 @CrossSync .pytest
14911494 async def test_ctor (self ):
14921495 from google .cloud .bigtable .data ._helpers import _WarmedInstanceKey
1496+ from google .cloud .bigtable .data ._metrics import BigtableClientSideMetricsController
14931497
14941498 expected_table_id = "table-id"
14951499 expected_instance_id = "instance-id"
@@ -1538,6 +1542,8 @@ async def test_ctor(self):
15381542 instance_key = _WarmedInstanceKey (view .instance_name , view .app_profile_id )
15391543 assert instance_key in client ._active_instances
15401544 assert client ._instance_owners [instance_key ] == {id (view )}
1545+ assert isinstance (view ._metrics , BigtableClientSideMetricsController )
1546+ assert view ._metrics .interceptor == client ._metrics_interceptor
15411547 assert view .default_operation_timeout == expected_operation_timeout
15421548 assert view .default_attempt_timeout == expected_attempt_timeout
15431549 assert (
0 commit comments