Skip to content

Commit 533434a

Browse files
TheSentinel454Elrondclaude
committed
test(buzz-db): drop the unreachable heartbeat seed from the purge FK test
Deletion requests are never hard-deleted, so the heartbeat's SET NULL path cannot fire and the seed pinned nothing about FK replacement. Co-authored-by: Elrond <28d6302a099e5225b02c4155ac4236e4912603df2ab08dbfc2f4fef08ce598c8@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Luke Tornquist <[email protected]>
1 parent 6c065d4 commit 533434a

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

‎crates/buzz-db/src/store/deletion.rs‎

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7797,16 +7797,6 @@ mod postgres_tests {
77977797
.execute(&db.pool)
77987798
.await
77997799
.expect("seed operator feedback");
7800-
let executor_id = format!("purge-test-{}", Uuid::new_v4());
7801-
sqlx::query(
7802-
"INSERT INTO community_deletion_executor_heartbeats \
7803-
(executor_id, mode, request_id) VALUES ($1, 'worker', $2)",
7804-
)
7805-
.bind(&executor_id)
7806-
.bind(request.id)
7807-
.execute(&db.pool)
7808-
.await
7809-
.expect("seed request heartbeat");
78107800

78117801
store
78127802
.approve(request.id, "approver", None)
@@ -7880,15 +7870,6 @@ mod postgres_tests {
78807870
provenance, None,
78817871
"operator feedback loses tenant provenance"
78827872
);
7883-
let heartbeat_request: Option<Uuid> = sqlx::query_scalar(
7884-
"SELECT request_id FROM community_deletion_executor_heartbeats \
7885-
WHERE executor_id = $1",
7886-
)
7887-
.bind(&executor_id)
7888-
.fetch_one(&db.pool)
7889-
.await
7890-
.expect("heartbeat survives with retained request");
7891-
assert_eq!(heartbeat_request, Some(request.id));
78927873
}
78937874

78947875
#[tokio::test]

0 commit comments

Comments
 (0)