From f282e09dce21afc1655496bdf25b08a5f568697e Mon Sep 17 00:00:00 2001 From: cloudhead Date: Mon, 21 Aug 2023 11:57:32 +0200 Subject: [PATCH] cli: Fix test speed regression These two tests were holding everything up. --- radicle-cli/examples/rad-sync.md | 2 +- radicle-cli/tests/commands.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/radicle-cli/examples/rad-sync.md b/radicle-cli/examples/rad-sync.md index fd400da3..1722eb98 100644 --- a/radicle-cli/examples/rad-sync.md +++ b/radicle-cli/examples/rad-sync.md @@ -38,7 +38,7 @@ $ rad sync --fetch Specifying both `--fetch` and `--announce` is equivalent to specifying none: ``` (fail) -$ rad sync --fetch --announce +$ rad sync --fetch --announce --timeout 1 ✓ Fetching rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji from z6Mkux1…nVhib7Z.. ✓ Fetching rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji from z6Mkt67…v4N1tRk.. ✓ Fetched repository from 2 seed(s) diff --git a/radicle-cli/tests/commands.rs b/radicle-cli/tests/commands.rs index a00a3a0d..1d32f117 100644 --- a/radicle-cli/tests/commands.rs +++ b/radicle-cli/tests/commands.rs @@ -571,7 +571,8 @@ fn rad_clone_connect() { 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); bob.routes_to(&[(acme, alice.id)]); eve.routes_to(&[(acme, alice.id), (acme, bob.id)]);