Skip to content

Commit 83a23be

Browse files
authored
test: use transaction connections when using transaction port (supabase#597)
1 parent 0f18205 commit 83a23be

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.1
1+
2.4.2

test/support/e2e_case.ex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,14 @@ defmodule Supavisor.E2ECase do
4949
"db_user" => "postgres",
5050
"db_password" => "postgres",
5151
"is_manager" => true,
52-
"mode_type" => "session"
52+
"mode_type" => "transaction"
5353
}
5454
]
5555
})
5656

5757
on_exit(fn ->
58-
:ok = Supavisor.stop({{:single, external_id}, "postgres", :session, external_id, nil})
58+
_ = Supavisor.stop({{:single, external_id}, "postgres", :session, external_id, nil})
59+
_ = Supavisor.stop({{:single, external_id}, "postgres", :transaction, external_id, nil})
5960

6061
unboxed(fn ->
6162
assert {:ok, _} = @repo.query("DROP DATABASE #{external_id}")

0 commit comments

Comments
 (0)