From 6b1831aea2bf95e1a4f3a31894000537af0db617 Mon Sep 17 00:00:00 2001 From: MechaCat02 Date: Thu, 2 Jul 2026 20:38:05 +0200 Subject: [PATCH] test(api): pin /version schema assertion to migration 63 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The #[ignore]-gated version_includes_public_base_url pinned schema=42 but migrations accreted to 63 across the v1.2 template track (…0060–0063), so it failed under `--include-ignored`. Re-pin to current reality per the test's own intent. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/picloud/tests/api.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/picloud/tests/api.rs b/crates/picloud/tests/api.rs index 852e380..e9791c3 100644 --- a/crates/picloud/tests/api.rs +++ b/crates/picloud/tests/api.rs @@ -891,12 +891,12 @@ async fn version_includes_public_base_url(pool: PgPool) { assert!(v["public_base_url"].is_string()); assert_eq!(v["api"], 1); // `schema` is migrations::latest_version() — the highest embedded - // migration number. Bumped to 42 by audit 2026-06-11's - // 0042_secrets_envelope_version.sql (H-D1). Both this and `sdk` had - // rotted (pinned at 6 / "1.1" while the codebase moved to 41 / "1.10") - // because the test is #[ignore]-gated; pinned to current reality so - // unintended changes are still caught. - assert_eq!(v["schema"], 42); + // migration number, currently 63 (…0060_group_suppressions .. + // 0063_materialized_unique from the v1.2 template track). This test is + // #[ignore]-gated so it doesn't run in the default `cargo test`; pinned to + // current reality so an unintended schema change is still caught. Bump it + // whenever a migration lands. + assert_eq!(v["schema"], 63); assert_eq!(v["sdk"], "1.10"); }