Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

test(pipeline): the surface envelope probe expects codec version 3

Martin Vogel9129c48f4832
diff --git a/tests/test_pipeline.c b/tests/test_pipeline.c
index d9eb9e3fb..b7f2b5cff 100644
--- a/tests/test_pipeline.c
+++ b/tests/test_pipeline.c
@@ -22428,9 +22428,10 @@ TEST(pipeline_lsp_surface_persisted_and_body_edit_invariant) {
ASSERT_TRUE(row_a->surface_sha && row_a->surface_sha[0]);
if (round == 0) {
snprintf(sha_baseline, sizeof(sha_baseline), "%s", row_a->surface_sha);
- /* The row is the versioned codec envelope with the def present. */
+ /* The row is the versioned codec envelope (codec version 3) with
+ * the def present. */
snprintf(json_probe, sizeof(json_probe), "%.20s", row_a->defs_json);
- ASSERT_TRUE(strstr(row_a->defs_json, "\"v\":2") != NULL);
+ ASSERT_TRUE(strstr(row_a->defs_json, "\"v\":3") != NULL);
ASSERT_TRUE(strstr(row_a->defs_json, "surface_probe") != NULL);
} else if (round == 1) {
ASSERT_STR_EQ(row_a->surface_sha, sha_baseline);