Path: redb-route/tests/redb.Route.Tests.IbmMq/IbmMqStand.cs Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/tests/redb.Route.Tests.IbmMq/IbmMqStand.cs ---- using redb.Route.Tests.Conformance; namespace redb.Route.Tests.IbmMq; /// /// The IBM MQ stand: queue manager QM1 at localhost:1414 with the queues of tests/docker/ibmmq/redb-tests.mqsc, /// reached through the MQI client of . Its container, when /// names it, is broken with ; the queue manager is ready when /// the image's chkmqhealthy passes. /// public sealed class IbmMqStand : IConnectorStand { /// The variable that names the IBM MQ container a test may restart. public const string ContainerVariable = "REDB_TEST_IBMMQ_CONTAINER"; /// The stand of this process. public static IbmMqStand Instance { get; } = new(); private IbmMqStand() { } /// public BrokerFault? Fault { get; } = BrokerFault.FromEnvironment(ContainerVariable, "chkmqhealthy"); /// public TimeSpan Wait { get; } = BrokerFault.DefaultWait; /// public Task PutAsync(string destination, string body, CancellationToken ct = default) => Task.Run(() => IbmMqPoisonTests.Put(destination, body), ct); /// public Task> DrainAsync(string destination, TimeSpan wait, CancellationToken ct = default) => Task.Run>(() => IbmMqPoisonTests.Drain(destination, (int)wait.TotalMilliseconds), ct); }