Skip to content

Commit 46f2f0c

Browse files
authored
chore: use lifo on poolboy for tests (#1640)
Avoid using the same container over and over
1 parent 395a097 commit 46f2f0c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/support/containers.ex

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,13 @@ defmodule Containers do
3636
def handle_continue({:pool, max_cases}, state) do
3737
{:ok, _pid} =
3838
:poolboy.start_link(
39-
[name: {:local, Containers.Pool}, size: max_cases + 2, max_overflow: 0, worker_module: Containers.Container],
39+
[
40+
strategy: :fifo,
41+
name: {:local, Containers.Pool},
42+
size: max_cases + 2,
43+
max_overflow: 0,
44+
worker_module: Containers.Container
45+
],
4046
[]
4147
)
4248

0 commit comments

Comments
 (0)