Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/tracker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ use crate::databases::driver::Driver;
use crate::databases::{self, Database};
use crate::protocol::info_hash::InfoHash;

// force build

pub struct Tracker {
pub config: Arc<Configuration>,
mode: mode::Mode,
Expand Down
5 changes: 0 additions & 5 deletions tests/tracker_api.rs → tests/api/integrations_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
/// ```text
/// cargo test tracker_apis -- --nocapture
/// ```
extern crate rand;

mod api;
mod common;

mod tracker_apis {

use crate::common::fixtures::invalid_info_hashes;
Expand Down
1 change: 1 addition & 0 deletions tests/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pub mod asserts;
pub mod client;
pub mod connection_info;
pub mod server;
pub mod integrations_tests;

/// It forces a database error by dropping all tables.
/// That makes any query fail.
Expand Down
3 changes: 0 additions & 3 deletions tests/http_tracker.rs → tests/http/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
/// ```text
/// cargo test `warp_http_tracker_server` -- --nocapture
/// ```
mod common;
mod http;

mod warp_http_tracker_server {

mod for_all_config_modes {
Expand Down
1 change: 1 addition & 0 deletions tests/http/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pub mod connection_info;
pub mod requests;
pub mod responses;
pub mod server;
pub mod integration_tests;

use percent_encoding::NON_ALPHANUMERIC;

Expand Down
6 changes: 6 additions & 0 deletions tests/integration_tests.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
extern crate rand;

mod api;
mod common;
mod http;
mod udp;
9 changes: 2 additions & 7 deletions tests/udp_tracker.rs → tests/udp/integration_tests.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
/// Integration tests for UDP tracker server
///
/// cargo test `udp_tracker_server` -- --nocapture
extern crate rand;

mod common;
mod udp;

mod udp_tracker_server {

// UDP tracker documentation:
Expand Down Expand Up @@ -97,8 +92,8 @@ mod udp_tracker_server {

use crate::udp::asserts::is_ipv4_announce_response;
use crate::udp::client::new_udp_tracker_client_connected;
use crate::udp::integration_tests::udp_tracker_server::send_connection_request;
use crate::udp::server::{start_udp_tracker, tracker_configuration};
use crate::udp_tracker_server::send_connection_request;

#[tokio::test]
async fn should_return_an_announce_response() {
Expand Down Expand Up @@ -140,8 +135,8 @@ mod udp_tracker_server {

use crate::udp::asserts::is_scrape_response;
use crate::udp::client::new_udp_tracker_client_connected;
use crate::udp::integration_tests::udp_tracker_server::send_connection_request;
use crate::udp::server::{start_udp_tracker, tracker_configuration};
use crate::udp_tracker_server::send_connection_request;

#[tokio::test]
async fn should_return_a_scrape_response() {
Expand Down
1 change: 1 addition & 0 deletions tests/udp/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pub mod asserts;
pub mod client;
pub mod server;
pub mod integration_tests;