Skip to content

Commit

Permalink
trap exit in reaper init
Browse files Browse the repository at this point in the history
  • Loading branch information
jarlah committed Oct 13, 2023
1 parent 137bbea commit 9a1efd1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/reaper.ex
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ defmodule TestcontainersElixir.Reaper do

@impl true
def init(connection) do
Process.flag(:trap_exit, true)
with {:ok, _image_create_response} <-
Api.Image.image_create(connection, fromImage: @ryuk_image),
{:ok, %Model.ContainerCreateResponse{Id: container_id}} <-
Expand Down

0 comments on commit 9a1efd1

Please sign in to comment.