Minor changes, release preparations

This commit is contained in:
Tim Zöller 2022-03-21 19:24:33 +01:00
parent 28b0183339
commit 791708bf51
2 changed files with 6 additions and 1 deletions

View file

@ -8,6 +8,8 @@ This library is a lightweight wrapper around the [Testcontainers Java library](h
## What it isn't
This library does not provide tools to include testcontainers in your testing lifecycle. As there are many different test tools with different approaches to testing in the clojure world, handling the lifecycle is up to you.
## Integration with test runners
There is an [experimental kaocha plugin](https://github.com/lambdaschmiede/kaocha-testcontainers-plugin) you can try out
## Usage

View file

@ -133,10 +133,13 @@
{:wait-for-healthcheck true})
(defmethod wait :log
[{:keys [message startup-timeout]} ^GenericContainer container]
[{:keys [message times startup-timeout]} ^GenericContainer container]
(let [log-message (str ".*" message ".*\\n")
strategy (Wait/forLogMessage log-message 1)]
(when times
(.withTimes strategy times))
(when startup-timeout
(.withStartupTimeout strategy (Duration/ofSeconds startup-timeout)))