https://github.com/defactosoftware/assert_async
Elixir library to assert in tests for async calls
https://github.com/defactosoftware/assert_async
Last synced: 3 months ago
JSON representation
Elixir library to assert in tests for async calls
- Host: GitHub
- URL: https://github.com/defactosoftware/assert_async
- Owner: DefactoSoftware
- Created: 2018-12-14T21:22:24.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-15T11:38:54.000Z (about 7 years ago)
- Last Synced: 2025-02-02T04:45:52.371Z (12 months ago)
- Language: Elixir
- Size: 4.88 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://hex.pm/packages/assert_async)
# AssertAsync
Assert tests with retries for async testing.
## Installation
Can be installed via git:
```elixir
def deps do
[
{:assert_async, git: "https://github.com/defactosoftware/assert_async", only: [:test]}
]
end
```
usage in test
```ex
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
```