Minor changes, release preparations
This commit is contained in:
parent
28b0183339
commit
791708bf51
2 changed files with 6 additions and 1 deletions
|
|
@ -8,6 +8,8 @@ This library is a lightweight wrapper around the [Testcontainers Java library](h
|
||||||
## What it isn't
|
## 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.
|
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
|
## Usage
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -133,10 +133,13 @@
|
||||||
{:wait-for-healthcheck true})
|
{:wait-for-healthcheck true})
|
||||||
|
|
||||||
(defmethod wait :log
|
(defmethod wait :log
|
||||||
[{:keys [message startup-timeout]} ^GenericContainer container]
|
[{:keys [message times startup-timeout]} ^GenericContainer container]
|
||||||
(let [log-message (str ".*" message ".*\\n")
|
(let [log-message (str ".*" message ".*\\n")
|
||||||
strategy (Wait/forLogMessage log-message 1)]
|
strategy (Wait/forLogMessage log-message 1)]
|
||||||
|
|
||||||
|
(when times
|
||||||
|
(.withTimes strategy times))
|
||||||
|
|
||||||
(when startup-timeout
|
(when startup-timeout
|
||||||
(.withStartupTimeout strategy (Duration/ofSeconds startup-timeout)))
|
(.withStartupTimeout strategy (Duration/ofSeconds startup-timeout)))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue