torrust-tracker 3.0.0-alpha.2

A feature rich BitTorrent tracker.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::sync::Arc;

use torrust_tracker::tracker::Tracker;

pub mod connection_info;
pub mod test_environment;
pub mod v1;

/// It forces a database error by dropping all tables.
/// That makes any query fail.
/// code-review: alternatively we could inject a database mock in the future.
pub fn force_database_error(tracker: &Arc<Tracker>) {
    tracker.database.drop_database_tables().unwrap();
}