logstash/qa/docker
Cas Donoghue c31fcfd9ee
Add helper method to wait for log message to be observed (#17589)
* Add helper method to wait for log message to be observed

There appears to be a race condition in tests whereby log messages are not
observed with a single interogation of the container logs. This commit adds a
helper method to wait for log messages. This should make the tests more
resilient when there is a delay in log messages being captured.

* Use local scop container ref

Due to a copy paste error, the wrong reference to container (instance var)
was being used. When test file that did not define this uses the helper
it failed. The helper should use the ref explicitly passed to the method.
2025-04-29 11:21:10 -07:00
..
fixtures Docker integration tests stability improvements (#13014) 2021-11-23 23:17:42 -05:00
patches/excon Rubocop: Enable various EmptyLine cops (#15194) 2023-07-18 16:49:16 -04:00
shared_examples Add helper method to wait for log message to be observed (#17589) 2025-04-29 11:21:10 -07:00
spec Add helper method to wait for log message to be observed (#17589) 2025-04-29 11:21:10 -07:00