Skip to content

Commit f523745

Browse files
committed
test(tracker-core): clarify db compatibility test usage
1 parent 6342067 commit f523745

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

  • packages

packages/http-protocol/src/v1/responses/scrape.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(

packages/tracker-core/src/databases/driver/mysql.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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() {

0 commit comments

Comments
 (0)