From 419e391522be8ae1a6593899aafb2abdb69b1d98 Mon Sep 17 00:00:00 2001 From: "Augie De Blieck Jr." Date: Sat, 14 Jun 2014 12:05:10 -0400 Subject: [PATCH] Minor grammatical fixes Subject/verb agreement fix. Also, "shut down" is two words as a verb, but one word as a noun. --- getting_started/mix_otp/2.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getting_started/mix_otp/2.markdown b/getting_started/mix_otp/2.markdown index c141a3657..cf89b156e 100644 --- a/getting_started/mix_otp/2.markdown +++ b/getting_started/mix_otp/2.markdown @@ -65,7 +65,7 @@ defmodule KV.BucketTest do end ``` -Our first test is quite straight-forward. We start 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 agents is shutdown automatically once the test finishes. +Our first test is quite straight-forward. We start 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. 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 our 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.