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 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-23 15:18:37 +02:00
commit a35c46afff

View file

@ -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);