@@ -49,7 +49,7 @@ impl Fixture {
4949 . inbound ( srv)
5050 . run ( )
5151 . await ;
52- let metrics = client:: http1 ( proxy. metrics , "localhost" ) ;
52+ let metrics = client:: http1 ( proxy. admin , "localhost" ) ;
5353
5454 let client = client:: new ( proxy. inbound , "tele.test.svc.cluster.local" ) ;
5555 let tcp_dst_labels = metrics:: labels ( ) . label ( "direction" , "inbound" ) ;
@@ -83,7 +83,7 @@ impl Fixture {
8383 . outbound ( srv)
8484 . run ( )
8585 . await ;
86- let metrics = client:: http1 ( proxy. metrics , "localhost" ) ;
86+ let metrics = client:: http1 ( proxy. admin , "localhost" ) ;
8787
8888 let client = client:: new ( proxy. outbound , "tele.test.svc.cluster.local" ) ;
8989 let tcp_labels = metrics:: labels ( )
@@ -137,7 +137,7 @@ impl TcpFixture {
137137 . await ;
138138
139139 let client = client:: tcp ( proxy. inbound ) ;
140- let metrics = client:: http1 ( proxy. metrics , "localhost" ) ;
140+ let metrics = client:: http1 ( proxy. admin , "localhost" ) ;
141141
142142 let src_labels = metrics:: labels ( )
143143 . label ( "direction" , "inbound" )
@@ -175,7 +175,7 @@ impl TcpFixture {
175175 . await ;
176176
177177 let client = client:: tcp ( proxy. outbound ) ;
178- let metrics = client:: http1 ( proxy. metrics , "localhost" ) ;
178+ let metrics = client:: http1 ( proxy. admin , "localhost" ) ;
179179
180180 let src_labels = metrics:: labels ( )
181181 . label ( "direction" , "outbound" )
@@ -530,7 +530,7 @@ mod outbound_dst_labels {
530530 . outbound ( srv)
531531 . run ( )
532532 . await ;
533- let metrics = client:: http1 ( proxy. metrics , "localhost" ) ;
533+ let metrics = client:: http1 ( proxy. admin , "localhost" ) ;
534534
535535 let client = client:: new ( proxy. outbound , dest) ;
536536 let tcp_labels = metrics:: labels ( )
@@ -852,7 +852,7 @@ async fn metrics_have_no_double_commas() {
852852 . run ( )
853853 . await ;
854854 let client = client:: new ( proxy. inbound , "tele.test.svc.cluster.local" ) ;
855- let metrics = client:: http1 ( proxy. metrics , "localhost" ) ;
855+ let metrics = client:: http1 ( proxy. admin , "localhost" ) ;
856856
857857 let scrape = metrics. get ( "/metrics" ) . await ;
858858 assert ! ( !scrape. contains( ",," ) ) ;
0 commit comments