upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/git/sync.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/git/sync.rs')
-rw-r--r--src/git/sync.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/git/sync.rs b/src/git/sync.rs
index 06013a5..b05e2d0 100644
--- a/src/git/sync.rs
+++ b/src/git/sync.rs
@@ -1618,7 +1618,8 @@ mod tests {
1618 }; 1618 };
1619 1619
1620 // latest should be considered latest 1620 // latest should be considered latest
1621 let result = is_latest_authorized_state(&latest, &maintainers, &[older.clone()]); 1621 let result =
1622 is_latest_authorized_state(&latest, &maintainers, std::slice::from_ref(&older));
1622 assert!(result); 1623 assert!(result);
1623 1624
1624 // older should not be considered latest 1625 // older should not be considered latest
@@ -1633,7 +1634,7 @@ mod tests {
1633 let maintainers = vec![keys.public_key().to_hex()]; 1634 let maintainers = vec![keys.public_key().to_hex()];
1634 1635
1635 // When the state being checked is also in the db_states, it should be considered latest 1636 // When the state being checked is also in the db_states, it should be considered latest
1636 let result = is_latest_authorized_state(&state, &maintainers, &[state.clone()]); 1637 let result = is_latest_authorized_state(&state, &maintainers, std::slice::from_ref(&state));
1637 assert!(result); 1638 assert!(result);
1638 } 1639 }
1639} 1640}