cli: Fix test speed regression

These two tests were holding everything up.
This commit is contained in:
cloudhead 2023-08-21 11:57:32 +02:00
parent 2536efcb55
commit f282e09dce
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -38,7 +38,7 @@ $ rad sync --fetch
Specifying both `--fetch` and `--announce` is equivalent to specifying none: Specifying both `--fetch` and `--announce` is equivalent to specifying none:
``` (fail) ``` (fail)
$ rad sync --fetch --announce $ rad sync --fetch --announce --timeout 1
✓ Fetching rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji from z6Mkux1…nVhib7Z.. ✓ Fetching rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji from z6Mkux1…nVhib7Z..
✓ Fetching rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji from z6Mkt67…v4N1tRk.. ✓ Fetching rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji from z6Mkt67…v4N1tRk..
✓ Fetched repository from 2 seed(s) ✓ Fetched repository from 2 seed(s)

View File

@ -571,7 +571,8 @@ fn rad_clone_connect() {
let eve = eve.spawn(); let eve = eve.spawn();
bob.handle.track_repo(acme, Scope::All).unwrap(); alice.handle.track_repo(acme, Scope::Trusted).unwrap();
bob.handle.track_repo(acme, Scope::Trusted).unwrap();
alice.connect(&bob); alice.connect(&bob);
bob.routes_to(&[(acme, alice.id)]); bob.routes_to(&[(acme, alice.id)]);
eve.routes_to(&[(acme, alice.id), (acme, bob.id)]); eve.routes_to(&[(acme, alice.id), (acme, bob.id)]);