Skip to content

Commit 9129c48

Browse files
committed
test(pipeline): the surface envelope probe expects codec version 3
The Python surface-envelope test (pipeline round 0) checks that the persisted row is the versioned codec envelope by looking for the literal "v":2. With SURFACE_CODEC_VERSION at 3, the envelope reads "v":3. The assertion keeps its meaning (the row is the versioned envelope and the def is present) and follows the version. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
1 parent 36bce46 commit 9129c48

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎tests/test_pipeline.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22428,9 +22428,10 @@ TEST(pipeline_lsp_surface_persisted_and_body_edit_invariant) {
2242822428
ASSERT_TRUE(row_a->surface_sha && row_a->surface_sha[0]);
2242922429
if (round == 0) {
2243022430
snprintf(sha_baseline, sizeof(sha_baseline), "%s", row_a->surface_sha);
22431-
/* The row is the versioned codec envelope with the def present. */
22431+
/* The row is the versioned codec envelope (codec version 3) with
22432+
* the def present. */
2243222433
snprintf(json_probe, sizeof(json_probe), "%.20s", row_a->defs_json);
22433-
ASSERT_TRUE(strstr(row_a->defs_json, "\"v\":2") != NULL);
22434+
ASSERT_TRUE(strstr(row_a->defs_json, "\"v\":3") != NULL);
2243422435
ASSERT_TRUE(strstr(row_a->defs_json, "surface_probe") != NULL);
2243522436
} else if (round == 1) {
2243622437
ASSERT_STR_EQ(row_a->surface_sha, sha_baseline);

0 commit comments

Comments
 (0)