oa_gateway_testing

Module util

Source
Expand description

Timeouts and markers for cross-adapter tests.

recv_envelope is the loopback counterpart of the OWP/STOMP recv helpers. xml_marked and unique_token exist for live ActiveMQ runs, where leftover messages on a shared topic would otherwise match the wrong test.

Functions§

  • Next envelope, or panic after two seconds / a closed channel.
  • prefix plus wall-clock nanos. Unique enough on one machine for concurrent live tests; not a UUID.
  • Rewrites the fixture’s <n>1</n> so a live broker test can assert it saw this send, not a leftover from another run.