RSSAmplifier

Peter Ullrich Blog · Feb 5, 2025

Test async work in Elixir with assert_eventually

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Welcome to another blog post, folks! First another dad joke: What do you call a medieval spy? Sir Veillance Alrighty, today's a quick one. How to assert that an async task succeeds eventually in your Elixir tests. The Problem Elixir makes writing asynchronous work easy, but testing it is still a bit tricky. Let's have a look at an example test: test "async task updates my database record…

Read on peterullrich.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.