Skip to content

Commit

Permalink
escape system calls in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jarlah committed Oct 20, 2023
1 parent 84c8f39 commit 17a3416
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/ecto.ex
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ defmodule Testcontainers.Ecto do
username: "postgres",
password: "postgres",
hostname: "localhost",
database: "my_app_test#{System.get_env("MIX_TEST_PARTITION")}", # set this also in postgres_container macro database option, or remove the appending
database: "my_app_test\#{System.get_env("MIX_TEST_PARTITION")}", # set this also in postgres_container macro database option, or remove the appending
pool: Ecto.Adapters.SQL.Sandbox,
pool_size: 10
# for example, to set the database name to the one above, in application.ex:
@impl true
def start(_type, _args) do
postgres_container(app: :my_app, database: "my_app_test#{System.get_env("MIX_TEST_PARTITION")}"),
postgres_container(app: :my_app, database: "my_app_test\#{System.get_env("MIX_TEST_PARTITION")}"),
# .. other setup code
]
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule TestcontainersElixir.MixProject do
use Mix.Project

@app :testcontainers
@version "1.1.0"
@version "1.1.1"
@source_url "https://github.com/jarlah/testcontainers-elixir"

def project do
Expand Down

0 comments on commit 17a3416

Please sign in to comment.