Skip to content

Commit 52b460b

Browse files
committed
remove test sleep
1 parent 99673bb commit 52b460b

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

test/cell_test.exs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,7 @@ defmodule CellTest do
4848
output_list =
4949
Enum.map(1..100, fn _i ->
5050
Task.async(fn ->
51-
Cas.Cell.swap!(cell, fn previous ->
52-
# 11-21ms of random sleep.
53-
# when using Cas.Cell, you'd never put a side effect in here
54-
# like this, but this is a demonstration
55-
:timer.sleep(:rand.uniform(10) + 10)
56-
previous + 1
57-
end)
51+
Cas.Cell.swap!(cell, fn previous -> previous + 1 end)
5852
end)
5953
end)
6054
|> Enum.map(fn task -> Task.await(task) end)

0 commit comments

Comments
 (0)