summaryrefslogtreecommitdiff
path: root/lib/elixir/test/elixir/stream_test.exs
diff options
context:
space:
mode:
authorAleksei Magusev <lexmag@me.com>2015-04-09 23:21:41 +0200
committerAleksei Magusev <lexmag@me.com>2015-04-09 23:21:41 +0200
commit92772226bdb01116ab3eeace739ff6bd118e4b39 (patch)
tree336564ad0582bdec8a7a005221c3b9cb173df591 /lib/elixir/test/elixir/stream_test.exs
parent2e9778421ee5bb0c7d15ef9fa132d43045f83611 (diff)
downloadelixir-92772226bdb01116ab3eeace739ff6bd118e4b39.tar.gz
Replace `:erlang.now/0` with `:os.timestamp/0`
Diffstat (limited to 'lib/elixir/test/elixir/stream_test.exs')
-rw-r--r--lib/elixir/test/elixir/stream_test.exs8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/elixir/test/elixir/stream_test.exs b/lib/elixir/test/elixir/stream_test.exs
index 0022bcc0f..fc57757a4 100644
--- a/lib/elixir/test/elixir/stream_test.exs
+++ b/lib/elixir/test/elixir/stream_test.exs
@@ -343,9 +343,9 @@ defmodule StreamTest do
test "interval/1" do
stream = Stream.interval(10)
- now = :erlang.now
+ now = :os.timestamp
assert Enum.take(stream, 5) == [0, 1, 2, 3, 4]
- assert :timer.now_diff(:erlang.now, now) > 50000
+ assert :timer.now_diff(:os.timestamp, now) > 50000
end
test "into/2 and run/1" do
@@ -644,9 +644,9 @@ defmodule StreamTest do
test "timer/1" do
stream = Stream.timer(10)
- now = :erlang.now
+ now = :os.timestamp
assert Enum.to_list(stream) == [0]
- assert :timer.now_diff(:erlang.now, now) > 10000
+ assert :timer.now_diff(:os.timestamp, now) > 10000
end
test "unfold/2" do