mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 14:00:31 +08:00
node: Get the failing fetch tests passing
We fix the failing fetch tests by: 1. Not verifying our own refs, unless we're cloning, since we're otherwise not fetching our own refs. 2. Always force-fetching `sigrefs` from remotes into the staging copy. 3. Making sure that sigref updates are fast-forward before transfering the remote into the production copy.
This commit is contained in:
@@ -612,7 +612,12 @@ fn test_cob_deletion() {
|
||||
let alice_issues = radicle::cob::issue::Issues::open(&alice_repo).unwrap();
|
||||
alice_issues.remove(issue_id, &alice.signer).unwrap();
|
||||
|
||||
bob.handle.fetch(rid, alice.id).unwrap();
|
||||
log::debug!(target: "test", "Removing issue..");
|
||||
|
||||
radicle::assert_matches!(
|
||||
bob.handle.fetch(rid, alice.id).unwrap(),
|
||||
radicle::node::FetchResult::Success { .. }
|
||||
);
|
||||
let bob_repo = bob.storage.repository(rid).unwrap();
|
||||
let bob_issues = radicle::cob::issue::Issues::open(&bob_repo).unwrap();
|
||||
assert!(bob_issues.get(issue_id).unwrap().is_none());
|
||||
|
||||
Reference in New Issue
Block a user