Fix the method name
This commit is contained in:
parent
78d8edf540
commit
5cffc15065
1 changed files with 5 additions and 5 deletions
10
README.md
10
README.md
|
|
@ -18,12 +18,12 @@ The library provides a set of functions to interact with the testcontainers. A s
|
||||||
```clojure
|
```clojure
|
||||||
(require '[clj-test-containers.core :as tc])
|
(require '[clj-test-containers.core :as tc])
|
||||||
|
|
||||||
(def container (-> (tc/create {:image-name "postgres:12.1"
|
(def container (-> (tc/create {:image-name "postgres:12.1"
|
||||||
:exposed-ports [5432]
|
:exposed-ports [5432]
|
||||||
:env-vars {"POSTGRES_PASSWORD" "verysecret"}})
|
:env-vars {"POSTGRES_PASSWORD" "verysecret"}})
|
||||||
(tc/bind-filesystem {:host-path "/tmp"
|
(tc/bind-filesystem! {:host-path "/tmp"
|
||||||
:container-path "/opt"
|
:container-path "/opt"
|
||||||
:mode :read-only})
|
:mode :read-only})
|
||||||
(tc/start!))
|
(tc/start!))
|
||||||
|
|
||||||
(do-database-testing (:host container)
|
(do-database-testing (:host container)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue