Skip to content

Commit

Permalink
dev: use shared client for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
da2ce7 committed Mar 29, 2024
1 parent 93b8b2a commit 052d068
Show file tree
Hide file tree
Showing 5 changed files with 278 additions and 336 deletions.
2 changes: 1 addition & 1 deletion src/shared/bit_torrent/tracker/http/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl Client {
/// # Errors
///
/// This method fails if the client builder fails.
pub fn authenticated(base_url: Url, key: Key, timeout: Duration) -> Result<Self, Error> {
pub fn authenticated(base_url: Url, timeout: Duration, key: Key) -> Result<Self, Error> {
let client = reqwest::Client::builder()
.timeout(timeout)
.build()
Expand Down
101 changes: 0 additions & 101 deletions tests/servers/http/client.rs

This file was deleted.

5 changes: 3 additions & 2 deletions tests/servers/http/mod.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
pub mod asserts;
pub mod client;
pub mod environment;
pub mod v1;

use std::time::Duration;

use torrust_tracker::servers::http::server;

pub type Started = environment::Environment<server::Running>;

//pub(crate) const TIMEOUT: Duration = Duration::from_secs(5);
pub(crate) const TIMEOUT: Duration = Duration::from_secs(5);
Loading

0 comments on commit 052d068

Please sign in to comment.