Skip to content

Commit

Permalink
Patch up an error in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
whitfin committed Mar 28, 2016
1 parent 3c77d54 commit b753e21
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/expool_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule ExpoolTest do
test "basic pool assigns processes" do
{ :ok, pid } = Expool.create_pool(5)

pool = Expool.get_pool(pid)
pool = elem(Expool.get_pool(pid), 1)

assert(pool.active == true)
assert(pool.opts.register == nil)
Expand All @@ -16,7 +16,7 @@ defmodule ExpoolTest do
test "pool can be named" do
{ :ok, pid } = Expool.create_pool(5, name: :test)

pool = Expool.get_pool(pid)
pool = elem(Expool.get_pool(pid), 1)

assert(pool.active == true)
assert(pool.opts.register == :test)
Expand All @@ -28,7 +28,7 @@ defmodule ExpoolTest do
test "pool can use random strategy" do
{ :ok, pid } = Expool.create_pool(5, strategy: :random)

pool = Expool.get_pool(pid)
pool = elem(Expool.get_pool(pid), 1)

assert(pool.active == true)
assert(pool.opts.register == nil)
Expand Down Expand Up @@ -130,7 +130,7 @@ defmodule ExpoolTest do

{ atom, msg } = Expool.submit(pid, fn -> 1 end)

new_pool = Expool.get_pool(pid)
new_pool = elem(Expool.get_pool(pid), 1)

assert(new_pool.active == false)
assert(atom == :error)
Expand All @@ -143,7 +143,7 @@ defmodule ExpoolTest do

{ atom, msg } = Expool.submit(:my_pool, fn -> 1 end)

new_pool = Expool.get_pool(pid)
new_pool = elem(Expool.get_pool(pid), 1)

assert(new_pool.active == false)
assert(atom == :error)
Expand Down

0 comments on commit b753e21

Please sign in to comment.