Skip to content

Commit 3e30eaf

Browse files
Nikias Kalpaxiswhatyouhide
Nikias Kalpaxis
authored andcommitted
Fix a typo in the "Agent" chapter (elixir-lang#841)
1 parent 48326b7 commit 3e30eaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

getting-started/mix-otp/agent.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ defmodule KV.BucketTest do
6868
end
6969
```
7070

71-
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.
71+
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.
7272

7373
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.
7474

0 commit comments

Comments
 (0)