Set Up an Async Test

Learn how to set up an async test to run tests concurrently.

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 config/test.exs and only there.

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy