Assert tests with retries for async testing.
Can be installed via git:
def deps do
[
{:assert_async, git: "https://github.com/defactosoftware/assert_async", only: [:test]}
]
end
usage in test
defmodule YourApp.SomeModuleTest do
use ExUnit.Case
import AssertAsync
test "testing something async" do
some_async_insert()
assert_eventually(Ecto.Repo.exists?(InsertedThing))
end
end