forLogMessage static method

WaitStrategy forLogMessage(
  1. Pattern regex, [
  2. int times = 1
])

Ready when regex has matched times lines of the container's output (standard output and error). A String is a regular expression, matched anywhere in the line.

Implementation

static WaitStrategy forLogMessage(Pattern regex, [int times = 1]) =>
    _LogMessageWait(regex is String ? RegExp(regex) : regex, times);