Skip to content

Commit

Permalink
Fix all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane Kilkelly committed Mar 27, 2018
1 parent 9b3f00f commit 1d93b6e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions test/hammer_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,17 @@ defmodule HammerTest do
use ExUnit.Case, async: true

setup _context do
{:ok, _hammer_ets_pid} = Hammer.Backend.ETS.start_link()
{:ok, []}
pool = Hammer.Utils.pool_name()

opts = [
name: {:local, pool},
worker_module: Hammer.Backend.ETS,
size: 4,
max_overflow: 4
]

{:ok, _pid} = :poolboy.start_link(opts, [])
{:ok, [pool: pool]}
end

test "make_rate_checker" do
Expand Down

0 comments on commit 1d93b6e

Please sign in to comment.