Skip to content
Elixir library to assert in tests for async calls
Elixir
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
lib
test
.formatter.exs
.gitignore
.tool-versions
README.md
mix.exs
mix.lock

README.md

Hex.pm

AssertAsync

Assert tests with retries for async testing.

Installation

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
You can’t perform that action at this time.