End-to-end unit test (#90)

* First implementation of create_torrent_file

* Test harness for e2e preparing

* Saving

* Continuing test harness

* Continuing test harness

* Continuing test harness

* All servers are running

* Full e2e harness done

* Test e2e harness working fine

* Remove lints

* injecting faults

* The e2e test runs continuously

* e2e test

* Add a test for create_torrent

* Nothing

* Nothing, just tweaking the numberes

* Update tokio, remove custom tempfile shim
This commit is contained in:
Igor Katson 2024-03-05 09:18:22 +00:00 committed by GitHub
parent 5d6ecb8065
commit 2778d46bb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 634 additions and 20 deletions

View file

@ -1136,6 +1136,10 @@ impl Session {
handle.start(peer_rx, false, self.cancellation_token.child_token())?;
Ok(())
}
pub fn tcp_listen_port(&self) -> Option<u16> {
self.tcp_listen_port
}
}
// Ad adapter for converting stats into the format that tracker_comms accepts.