From ec3a58050bed1b77044ab329b60c53e9e94bdce5 Mon Sep 17 00:00:00 2001 From: Xeonacid Date: Tue, 1 Sep 2026 17:44:06 +0200 Subject: [PATCH] cli/tests: Wait for seed discovery after clone `git_push_canonical` clones the repository as Bob and then immediately runs `git push` as Alice, expecting "Synced with 1 seed(s)". `clone` announces Bob's inventory, but Alice only treats Bob as a seed after that announcement is applied to her routing table. On a slower host the reactor can still be busy when Alice looks up seeds, so she reports "No seeds found". Wait until Alice's routing table contains Bob for the repository before pushing. Apply the same wait to the lightweight-tags variant, which uses the same setup. Signed-off-by: Xeonacid --- crates/radicle-cli/tests/commands/git.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/radicle-cli/tests/commands/git.rs b/crates/radicle-cli/tests/commands/git.rs index 9ab6eb1e5..7f9a9ac2a 100644 --- a/crates/radicle-cli/tests/commands/git.rs +++ b/crates/radicle-cli/tests/commands/git.rs @@ -282,6 +282,8 @@ fn git_push_canonical_lightweight_tags() { bob.connect(&alice).converge([&alice]); bob.clone(rid, environment.work(&bob)).unwrap(); + // Alice must see Bob as a seed before `git push` tries to sync. + alice.routes_to(&[(rid, bob.id)]); formula( &environment.tempdir(), "examples/git/git-push-canonical-lightweight-tags.md", @@ -328,6 +330,8 @@ fn git_push_canonical() { bob.connect(&alice).converge([&alice]); bob.clone(rid, environment.work(&bob)).unwrap(); + // Alice must see Bob as a seed before `git push` tries to sync. + alice.routes_to(&[(rid, bob.id)]); formula( &environment.tempdir(), "examples/git/git-push-canonical-annotated-tags.md",