Skip to content

Commit 9c30cc5

Browse files
committed
test(node): disposition peer-readiness fixture writers in ledger
#248 added two test-only INSERT INTO peers fixtures that the peers-table writer guard now sees. Record them in LEDGER so test (stable)/beta pass on the rebased #254 head.
1 parent 7bbe0ed commit 9c30cc5

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

  • crates/gitlawb-node/src/db

‎crates/gitlawb-node/src/db/mod.rs‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6945,6 +6945,8 @@ mod peer_authority_tests {
69456945
/// | `prune_non_public_peers` (db/mod.rs) | a delete keyed on a computed bad-DID array; cannot repoint; boot-only caller in main.rs |
69466946
/// | `seed_local_peer` (sync.rs) | excluded by test-module location: a deliberate `upsert_peer` bypass for `file://` fixtures, which the public-URL gate rejects |
69476947
/// | `a_legacy_row_can_still_refresh_its_liveness` (db/mod.rs) | test-only. Seeds a PRE-GATE row by raw SQL on purpose: `upsert_peer` cannot create one, since the gate it is testing refuses exactly that DID. The fixture models what a deployed table already holds |
6948+
/// | `gossip_ping_round_requires_two_failures_before_persisting_unreachable` (main.rs) | test-only. Seeds a peer row by raw SQL so the gossip ping round can probe readiness hysteresis without going through `upsert_peer` |
6949+
/// | `manual_ping_uses_readiness_without_mutating_federation_gate` (api/peers.rs) | test-only. Seeds a peer row by raw SQL so the manual ping route can assert readiness probing without mutating federation gate state |
69486950
///
69496951
/// And the `upsert_peer` CALL-SITE authority table, which the ledger above
69506952
/// structurally cannot hold, because the bootstrap site issues no SQL of its own
@@ -7030,6 +7032,14 @@ mod peers_table_writer_guard {
70307032
/// listed function that no longer has one.
70317033
const LEDGER: &[(&str, usize)] = &[
70327034
("a_legacy_row_can_still_refresh_its_liveness", 1),
7035+
(
7036+
"gossip_ping_round_requires_two_failures_before_persisting_unreachable",
7037+
1,
7038+
),
7039+
(
7040+
"manual_ping_uses_readiness_without_mutating_federation_gate",
7041+
1,
7042+
),
70337043
("mark_peer_ping", 1),
70347044
("prune_non_public_peers", 1),
70357045
("prune_self_peers", 1),

0 commit comments

Comments
 (0)