Skip to content

Commit

Permalink
Wait longer for subscription test
Browse files Browse the repository at this point in the history
  • Loading branch information
vaartis committed Apr 13, 2018
1 parent 062d720 commit dcf2bae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/couchdb_ex_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ defmodule CouchDBExTest do
CouchDBEx.document_insert_one(%{data: seed}, "couchdb-ex-test")

# Need to wait a little, it never spawns immidietly
Process.sleep(100)
Process.sleep(1000)

assert Enum.count(Supervisor.which_children(CouchDBEx.Worker.ChangesCommunicator.Supervisor)) == 1

Expand All @@ -193,7 +193,7 @@ defmodule CouchDBExTest do
CouchDBEx.changes_unsub(ChangesTest)

# Just to be safe
Process.sleep(100)
Process.sleep(1000)

assert Enum.count(Supervisor.which_children(CouchDBEx.Worker.ChangesCommunicator.Supervisor)) == 0
end
Expand Down

0 comments on commit dcf2bae

Please sign in to comment.