From a35c46afff41d5cda32eae4a04fd1c842e317a7a Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 23 Sep 2026 15:18:37 +0200 Subject: [PATCH] Fix the interop lanes' dotnet-test success assertion to match real output Verified live on Windows: a passed NUnit test under `dotnet test --logger "console;verbosity=detailed"` prints "Test Run Successful." and "Passed: N", never the literal "Passed!" the assertion was checking for. Both the native and managed connector lanes now match the real strings; both were confirmed to pass for real against a live TypeScript provider (lane 1: 137ms, lane 2: 145ms with the golden-bytes hex line matching the TypeScript peer's own encoding byte for byte). Co-Authored-By: Claude Sonnet 5 --- .../cultnet-ts/test/interop/cultnet-interop.test.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/cultnet-ts/test/interop/cultnet-interop.test.ts b/packages/cultnet-ts/test/interop/cultnet-interop.test.ts index ef7645ca..c72deaff 100644 --- a/packages/cultnet-ts/test/interop/cultnet-interop.test.ts +++ b/packages/cultnet-ts/test/interop/cultnet-interop.test.ts @@ -498,7 +498,11 @@ test("CultMesh QUIC realtime: TypeScript provider and C# native connector (the U "NativeConnectorReceivesFromExternalProvider", { CULTMESH_NATIVE_EXTERNAL_ENDPOINT: ready.endpoint }, ); - assert.match(stdout, /Passed!/); + // Real output observed from a live run (NUnit3TestExecutor via VSTest, not + // Microsoft.Testing.Platform's newer console format): "Test Run + // Successful." plus "Passed: N", never the literal word "Passed!". + assert.match(stdout, /Test Run Successful\./); + assert.match(stdout, /Passed:\s*1/, `expected exactly one passed test.\n${stdout}`); assert.doesNotMatch(stdout, /Skipped:\s*1/, `the env var should have made the test run, not skip.\n${stdout}`); }); @@ -537,7 +541,11 @@ test("CultMesh QUIC realtime: TypeScript provider and C# managed connector, with "ManagedConnectorReceivesFromExternalProvider", { CULTMESH_NATIVE_EXTERNAL_ENDPOINT: ready.endpoint }, ); - assert.match(stdout, /Passed!/); + // Real output observed from a live run (NUnit3TestExecutor via VSTest, not + // Microsoft.Testing.Platform's newer console format): "Test Run + // Successful." plus "Passed: N", never the literal word "Passed!". + assert.match(stdout, /Test Run Successful\./); + assert.match(stdout, /Passed:\s*1/, `expected exactly one passed test.\n${stdout}`); assert.doesNotMatch(stdout, /Skipped:\s*1/, `the env var should have made the test run, not skip.\n${stdout}`); const goldenMatch = /CULTMESH_GOLDEN_HEX=([0-9A-Fa-f]+)/.exec(stdout);