From 70aabec109e8d40202a95e43d55a1e2a77d8a1b7 Mon Sep 17 00:00:00 2001 From: Nikias Kalpaxis Date: Thu, 1 Sep 2016 01:59:19 -0400 Subject: [PATCH] Fix grammar in getting-startded/mix-otp/agent --- getting-started/mix-otp/agent.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting-started/mix-otp/agent.markdown b/getting-started/mix-otp/agent.markdown index f587090b5..8a074824e 100644 --- a/getting-started/mix-otp/agent.markdown +++ b/getting-started/mix-otp/agent.markdown @@ -68,7 +68,7 @@ defmodule KV.BucketTest do end ``` -Our first test starts a new `KV.Bucket` and perform some `get/2` and `put/3` operations on it, asserting the result. We don't need to explicitly stop the agent because it is linked to the test process and the agent is shut down automatically once the test finishes. This will always work unless the process is named. +Our first test starts a new `KV.Bucket` and performs some `get/2` and `put/3` operations on it, asserting the result. We don't need to explicitly stop the agent because it is linked to the test process and the agent is shut down automatically once the test finishes. This will always work unless the process is named. Also note that we passed the `async: true` option to `ExUnit.Case`. This option makes this test case run in parallel with other test cases that set up the `:async` option. This is extremely useful to speed up our test suite by using multiple cores in our machine. Note though the `:async` option must only be set if the test case does not rely or change any global value. For example, if the test requires writing to the filesystem, registering processes, accessing a database, you must not make it async to avoid race conditions in between tests.