node/e2e: Fix test_non_fastforward_identity_doc
This test was flakey.
This commit is contained in:
parent
832598ceb7
commit
c96aea0699
|
|
@ -1563,7 +1563,7 @@ fn test_fetch_emits_canonical_ref_update() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_non_fastword_identity_doc() {
|
fn test_non_fastforward_identity_doc() {
|
||||||
use radicle::identity::Identity;
|
use radicle::identity::Identity;
|
||||||
|
|
||||||
let tmp = tempfile::tempdir().unwrap();
|
let tmp = tempfile::tempdir().unwrap();
|
||||||
|
|
@ -1591,6 +1591,12 @@ fn test_non_fastword_identity_doc() {
|
||||||
eve.connect(&bob);
|
eve.connect(&bob);
|
||||||
eve.connect(&alice_laptop);
|
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 and Eve have the same state for the repository
|
||||||
bob.handle.seed(rid, Scope::Followed).unwrap();
|
bob.handle.seed(rid, Scope::Followed).unwrap();
|
||||||
bob.handle.fetch(rid, alice.id, DEFAULT_TIMEOUT).unwrap();
|
bob.handle.fetch(rid, alice.id, DEFAULT_TIMEOUT).unwrap();
|
||||||
|
|
@ -1632,6 +1638,8 @@ fn test_non_fastword_identity_doc() {
|
||||||
(prev, rev)
|
(prev, rev)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
assert!(!has_issue(&alice, &issue));
|
||||||
|
|
||||||
// Bob fetches from Alice and we see the identity document was updated.
|
// 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
|
// Bob does not have the issue because Alice does not have the updates from
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue