@@ -125,7 +125,9 @@ async fn speedtest_upload_exceeds_300megabits_ps_limit(pool: Pool<Postgres>) ->
125125}
126126
127127#[ sqlx:: test]
128- async fn speedtest_download_exceeds_300mb_limit ( pool : Pool < Postgres > ) -> anyhow:: Result < ( ) > {
128+ async fn speedtest_download_exceeds_300_megabits_ps_limit (
129+ pool : Pool < Postgres > ,
130+ ) -> anyhow:: Result < ( ) > {
129131 let ( _tx, rx) = tokio:: sync:: mpsc:: channel ( 2 ) ;
130132 let gateway_info_resolver = MockGatewayInfoResolver { } ;
131133 let ( speedtest_avg_client, _speedtest_avg_receiver) = common:: create_file_sink ( ) ;
@@ -162,7 +164,9 @@ async fn speedtest_download_exceeds_300mb_limit(pool: Pool<Postgres>) -> anyhow:
162164}
163165
164166#[ sqlx:: test]
165- async fn speedtest_both_speeds_exceed_300mb_limit ( pool : Pool < Postgres > ) -> anyhow:: Result < ( ) > {
167+ async fn speedtest_both_speeds_exceed_300_megabits_ps_limit (
168+ pool : Pool < Postgres > ,
169+ ) -> anyhow:: Result < ( ) > {
166170 let ( _tx, rx) = tokio:: sync:: mpsc:: channel ( 2 ) ;
167171 let gateway_info_resolver = MockGatewayInfoResolver { } ;
168172 let ( speedtest_avg_client, _speedtest_avg_receiver) = common:: create_file_sink ( ) ;
@@ -199,7 +203,9 @@ async fn speedtest_both_speeds_exceed_300mb_limit(pool: Pool<Postgres>) -> anyho
199203}
200204
201205#[ sqlx:: test]
202- async fn speedtest_within_300mb_limit_should_be_valid ( pool : Pool < Postgres > ) -> anyhow:: Result < ( ) > {
206+ async fn speedtest_within_300_megabits_ps_limit_should_be_valid (
207+ pool : Pool < Postgres > ,
208+ ) -> anyhow:: Result < ( ) > {
203209 let ( _tx, rx) = tokio:: sync:: mpsc:: channel ( 2 ) ;
204210 let gateway_info_resolver = MockGatewayInfoResolver { } ;
205211 let ( speedtest_avg_client, _speedtest_avg_receiver) = common:: create_file_sink ( ) ;
@@ -236,7 +242,9 @@ async fn speedtest_within_300mb_limit_should_be_valid(pool: Pool<Postgres>) -> a
236242}
237243
238244#[ sqlx:: test]
239- async fn speedtest_exactly_300mb_limit_should_be_valid ( pool : Pool < Postgres > ) -> anyhow:: Result < ( ) > {
245+ async fn speedtest_exactly_300_megabits_ps_limit_should_be_valid (
246+ pool : Pool < Postgres > ,
247+ ) -> anyhow:: Result < ( ) > {
240248 let ( _tx, rx) = tokio:: sync:: mpsc:: channel ( 2 ) ;
241249 let gateway_info_resolver = MockGatewayInfoResolver { } ;
242250 let ( speedtest_avg_client, _speedtest_avg_receiver) = common:: create_file_sink ( ) ;
@@ -301,7 +309,7 @@ async fn invalid_speedtests_should_not_affect_average(pool: Pool<Postgres>) -> a
301309 latency: 80 , // Poor tier
302310 } ,
303311 } ,
304- // Invalid speedtest - upload exceeds 300MB , should NOT be included
312+ // Invalid speedtest - upload exceeds 300Mbits , should NOT be included
305313 // If included, this would push toward Good tier due to very high speeds
306314 CellSpeedtestIngestReport {
307315 received_timestamp: Utc :: now( ) ,
@@ -329,7 +337,7 @@ async fn invalid_speedtests_should_not_affect_average(pool: Pool<Postgres>) -> a
329337 latency: 90 , // Poor tier
330338 } ,
331339 } ,
332- // Invalid speedtest - download exceeds 300MB , should NOT be included
340+ // Invalid speedtest - download exceeds 300Mbits , should NOT be included
333341 // If included, this would push toward Good tier due to very high speeds
334342 CellSpeedtestIngestReport {
335343 received_timestamp: Utc :: now( ) ,
@@ -362,7 +370,7 @@ async fn invalid_speedtests_should_not_affect_average(pool: Pool<Postgres>) -> a
362370 let avgs = speedtest_avg_receiver. finish ( ) . await ?;
363371
364372 // Should have 2 average entries (one for each valid speedtest)
365- // Invalid speedtests with speeds > 300MB should NOT generate averages
373+ // Invalid speedtests with speeds > 300Mbits should NOT generate averages
366374 assert_eq ! (
367375 2 ,
368376 avgs. len( ) ,
0 commit comments