DHT bencode protocol more or less done
This commit is contained in:
parent
3090f1f5bb
commit
1b0047a4a4
5 changed files with 471 additions and 11 deletions
|
|
@ -146,7 +146,7 @@ mod tests {
|
|||
#[test]
|
||||
fn test_deserialize_torrent_dyn() {
|
||||
let mut buf = Vec::new();
|
||||
let filename = "resources/ubuntu-21.04-desktop-amd64.iso.torrent";
|
||||
let filename = "../librqbit/resources/ubuntu-21.04-desktop-amd64.iso.torrent";
|
||||
std::fs::File::open(filename)
|
||||
.unwrap()
|
||||
.read_to_end(&mut buf)
|
||||
|
|
@ -161,7 +161,7 @@ mod tests {
|
|||
#[test]
|
||||
fn test_serialize_torrent_dyn() {
|
||||
let mut buf = Vec::new();
|
||||
let filename = "resources/ubuntu-21.04-desktop-amd64.iso.torrent";
|
||||
let filename = "../librqbit/resources/ubuntu-21.04-desktop-amd64.iso.torrent";
|
||||
std::fs::File::open(filename)
|
||||
.unwrap()
|
||||
.read_to_end(&mut buf)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue