aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/long_timers_test.erl
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2016-08-24 14:24:34 +0200
committerRickard Green <[email protected]>2016-08-25 17:37:44 +0200
commitfc85e401ee279cc3b69635a71ffa93544ce5b99d (patch)
treeebf32fa7ad9cd3f84f00c3ecc7c1e0710289f3c2 /erts/emulator/test/long_timers_test.erl
parent412b5aaa5810cbac75ef41d29a36898ff1480129 (diff)
downloadotp-fc85e401ee279cc3b69635a71ffa93544ce5b99d.tar.gz
otp-fc85e401ee279cc3b69635a71ffa93544ce5b99d.tar.bz2
otp-fc85e401ee279cc3b69635a71ffa93544ce5b99d.zip
Update test-cases to use new symbolic time units
Diffstat (limited to 'erts/emulator/test/long_timers_test.erl')
-rw-r--r--erts/emulator/test/long_timers_test.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/emulator/test/long_timers_test.erl b/erts/emulator/test/long_timers_test.erl
index 7c055a31f9..0f211bce69 100644
--- a/erts/emulator/test/long_timers_test.erl
+++ b/erts/emulator/test/long_timers_test.erl
@@ -113,7 +113,7 @@ check([#timeout_rec{timeout = Timeout,
[type_str(Type),
time_str(Timeout),
SuccessStr,
- time_str(TimeoutDiff, erlang:convert_time_unit(1, seconds, native))]),
+ time_str(TimeoutDiff, erlang:convert_time_unit(1, second, native))]),
check(TORs, NeedRes, NewOk);
check([], _NeedRes, Ok) ->
Ok.
@@ -143,13 +143,13 @@ unit_str(Res) -> Res.
to_diff(Timeout, Start, Stop) ->
%% 'Timeout' in milli seconds
%% 'Start', 'Stop', and result in native unit
- (Stop - Start) - erlang:convert_time_unit(Timeout, milli_seconds, native).
+ (Stop - Start) - erlang:convert_time_unit(Timeout, millisecond, native).
ms(Time) ->
- erlang:convert_time_unit(Time, native, milli_seconds).
+ erlang:convert_time_unit(Time, native, millisecond).
max_late() ->
- erlang:convert_time_unit(?MAX_LATE_MS, milli_seconds, native).
+ erlang:convert_time_unit(?MAX_LATE_MS, millisecond, native).
receive_after(Timeout) ->
Start = erlang:monotonic_time(),