Set Up an Async Test
Explore how to configure the Ecto Repo to use a sandbox pool in the test environment and write async test cases in Elixir. Learn to set the correct ownership mode and checkout sandbox connections to safely run tests concurrently, improving test suite efficiency.
We'll cover the following...
We'll cover the following...
Change the Repo config to use the sandbox
We need to change our Repo configuration to use the sandbox pool in order to take advantage of the sandbox. We only want to do this when we’re in our test environment, though. That’s why we make the following change in ...