Fixed formatting issue
This commit is contained in:
parent
b4abae5c33
commit
b4bd44b944
1 changed files with 6 additions and 6 deletions
|
|
@ -25,7 +25,8 @@
|
||||||
BindMode/READ_WRITE
|
BindMode/READ_WRITE
|
||||||
BindMode/READ_ONLY)))
|
BindMode/READ_ONLY)))
|
||||||
|
|
||||||
(defn- reaper-instance []
|
(defn- reaper-instance
|
||||||
|
[]
|
||||||
(org.testcontainers.utility.ResourceReaper/instance))
|
(org.testcontainers.utility.ResourceReaper/instance))
|
||||||
|
|
||||||
(defmulti wait
|
(defmulti wait
|
||||||
|
|
@ -280,11 +281,11 @@
|
||||||
container-id (.getContainerId container)
|
container-id (.getContainerId container)
|
||||||
image-name (.getDockerImageName container)
|
image-name (.getDockerImageName container)
|
||||||
logger (log log-to container)]
|
logger (log log-to container)]
|
||||||
(.registerContainerForCleanup (reaper-instance)
|
(.registerContainerForCleanup (reaper-instance)
|
||||||
container-id
|
container-id
|
||||||
image-name)
|
image-name)
|
||||||
(-> container-config
|
(-> container-config
|
||||||
(merge {:id container-id
|
(merge {:id container-id
|
||||||
:mapped-ports mapped-ports
|
:mapped-ports mapped-ports
|
||||||
:image-name image-name} logger)
|
:image-name image-name} logger)
|
||||||
(dissoc :log-to))))
|
(dissoc :log-to))))
|
||||||
|
|
@ -324,8 +325,7 @@
|
||||||
|
|
||||||
(def ^:deprecated init-network create-network)
|
(def ^:deprecated init-network create-network)
|
||||||
|
|
||||||
|
(defn perform-cleanup!
|
||||||
(defn perform-cleanup!
|
|
||||||
"Stops and removes all container instances which were created in the active JVM or REPL session"
|
"Stops and removes all container instances which were created in the active JVM or REPL session"
|
||||||
[]
|
[]
|
||||||
(.performCleanup (reaper-instance)))
|
(.performCleanup (reaper-instance)))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue