Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
e2e: fix flakey test_non_fastforward_identity_doc test
✗ CI failure Adrian Duke committed 2 months ago
commit b61820412dfa62343456e1b85b0cc9f38ff52098
parent 9f8b9665e8f7adab16e63947ca706ba681392a85
1 failed (1 total) View logs
1 file changed +9 -1
modified crates/radicle-node/src/tests/e2e.rs
@@ -1563,7 +1563,7 @@ fn test_fetch_emits_canonical_ref_update() {
}

#[test]
-
fn test_non_fastword_identity_doc() {
+
fn test_non_fastforward_identity_doc() {
    use radicle::identity::Identity;

    let tmp = tempfile::tempdir().unwrap();
@@ -1591,6 +1591,12 @@ fn test_non_fastword_identity_doc() {
    eve.connect(&bob);
    eve.connect(&alice_laptop);

+
    // Due to permissive relaying, we need to lock down the scope for the RID.
+
    //
+
    // See: [`radicle-protocol::service::Service::relay()`] and
+
    //      [`radicle-protocol::service::Service::relay_announcement()`]
+
    alice.handle.seed(rid, Scope::Followed).unwrap();
+

    // Bob and Eve have the same state for the repository
    bob.handle.seed(rid, Scope::Followed).unwrap();
    bob.handle.fetch(rid, alice.id, DEFAULT_TIMEOUT).unwrap();
@@ -1632,6 +1638,8 @@ fn test_non_fastword_identity_doc() {
        (prev, rev)
    };

+
    assert!(!has_issue(&alice, &issue));
+

    // Bob fetches from Alice and we see the identity document was updated.
    //
    // Bob does not have the issue because Alice does not have the updates from