Skip to content

Commit c96aea0

Browse files
adriandukelorenzleutgeb
authored andcommitted
node/e2e: Fix test_non_fastforward_identity_doc
This test was flakey.
1 parent 832598c commit c96aea0

File tree

1 file changed

+9
-1
lines changed
  • crates/radicle-node/src/tests

1 file changed

+9
-1
lines changed

crates/radicle-node/src/tests/e2e.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1563,7 +1563,7 @@ fn test_fetch_emits_canonical_ref_update() {
15631563
}
15641564

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

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

1594+
// Due to permissive relaying, we need to lock down the scope for the RID.
1595+
//
1596+
// See: [`radicle-protocol::service::Service::relay()`] and
1597+
// [`radicle-protocol::service::Service::relay_announcement()`]
1598+
alice.handle.seed(rid, Scope::Followed).unwrap();
1599+
15941600
// Bob and Eve have the same state for the repository
15951601
bob.handle.seed(rid, Scope::Followed).unwrap();
15961602
bob.handle.fetch(rid, alice.id, DEFAULT_TIMEOUT).unwrap();
@@ -1632,6 +1638,8 @@ fn test_non_fastword_identity_doc() {
16321638
(prev, rev)
16331639
};
16341640

1641+
assert!(!has_issue(&alice, &issue));
1642+
16351643
// Bob fetches from Alice and we see the identity document was updated.
16361644
//
16371645
// Bob does not have the issue because Alice does not have the updates from

0 commit comments

Comments
 (0)