@grow-codes/jaeger - v0.1.1
    Preparing search index...

    Function pollForExpectation

    • For op handlers of eventually consistent reads: calls fn until the step's expectation passes or args.timeoutMs (default 60000; poll every args.intervalMs, default 1000) runs out, then returns the last value so the runner reports the shortfall. Backends such as Tempo or SkyWalking list a new service tens of seconds late. Steps without an expectation (or with expect.error) call fn once; errors from fn are thrown at once.

      Type Parameters

      • T

      Parameters

      Returns Promise<T>