Add native lane failure diagnostics

This commit is contained in:
Marc
2026-10-19 09:56:51 +02:00
parent e08befd869
commit e873bbbc01
@@ -609,7 +609,9 @@ namespace Opc.Ua.DataChannels.ClientServer.Tests
ServiceResultException? closed = Assert.ThrowsAsync<ServiceResultException>(async () =>
await lane.SendRequestAsync(request, harness.Token).ConfigureAwait(false));
Assert.That(closed!.StatusCode, Is.EqualTo(StatusCodes.BadConnectionClosed));
Assert.That(harness.ClientContext.IsReady, Is.True);
Assert.That(harness.ClientContext.IsReady, Is.True,
$"Client context termination: {string.Join(",", harness.ClientClosures)}; " +
$"transport failure: {harness.ClientTransportFailure}");
Assert.That(harness.NativeClient.Completion.IsCompleted, Is.False);
}