How to test a database call when using asynchronous task like GenServer.cast(...)?

You can also read into the following topic, which also discusses a few tactics to test async operations:

3 Likes