File tree Expand file tree Collapse file tree
http-protocol/src/v1/responses
tracker-core/src/databases/driver Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ mod tests {
133133 }
134134
135135 #[ test]
136- fn should_saturate_large_download_counts ( ) {
136+ fn should_encode_large_download_counts_as_i64 ( ) {
137137 let info_hash = InfoHash :: from_bytes ( & [ 0x69 ; 20 ] ) ;
138138 let mut scrape_data = ScrapeData :: empty ( ) ;
139139 scrape_data. add_file (
Original file line number Diff line number Diff line change @@ -355,7 +355,8 @@ mod tests {
355355
356356 Test for this driver are executed with:
357357
358- `TORRUST_TRACKER_CORE_RUN_MYSQL_DRIVER_TEST=true cargo test`
358+ `TORRUST_TRACKER_CORE_RUN_MYSQL_DRIVER_TEST=true \
359+ cargo test -p bittorrent-tracker-core --features db-compatibility-tests run_mysql_driver_tests`
359360
360361 The `Database` trait is very simple and we only have one driver that needs
361362 a container. In the future we might want to use different approaches like:
@@ -456,6 +457,8 @@ mod tests {
456457 driver
457458 }
458459
460+ // This test is invoked by `.github/workflows/testing.yaml` in the
461+ // `database-compatibility` job to validate supported MySQL versions.
459462 #[ tokio:: test]
460463 async fn run_mysql_driver_tests ( ) -> Result < ( ) , Box < dyn std:: error:: Error + ' static > > {
461464 if std:: env:: var ( "TORRUST_TRACKER_CORE_RUN_MYSQL_DRIVER_TEST" ) . is_err ( ) {
You can’t perform that action at this time.
0 commit comments