diff options
author | Anders Svensson <[email protected]> | 2015-02-10 08:44:35 +0100 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2015-02-20 02:26:53 +0100 |
commit | eae8ecd1fd2ba33b1c81d0c19605047e2f317eda (patch) | |
tree | c6dacca281e305e441a23b2fda3859cd5a623877 /lib/diameter/test/diameter_examples_SUITE.erl | |
parent | e6d19a18b7c1057c2b4493f8db822c82bb0dbe0d (diff) | |
download | otp-eae8ecd1fd2ba33b1c81d0c19605047e2f317eda.tar.gz otp-eae8ecd1fd2ba33b1c81d0c19605047e2f317eda.tar.bz2 otp-eae8ecd1fd2ba33b1c81d0c19605047e2f317eda.zip |
Use new time api in test suites
Where it's less important to do so, but it has to be done at some point
since erlang:now/0 is deprecated. As in the parent commit, continue to
use the old api if the new one is unavailable.
Diffstat (limited to 'lib/diameter/test/diameter_examples_SUITE.erl')
-rw-r--r-- | lib/diameter/test/diameter_examples_SUITE.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/diameter/test/diameter_examples_SUITE.erl b/lib/diameter/test/diameter_examples_SUITE.erl index dc0b466b59..ef8e459175 100644 --- a/lib/diameter/test/diameter_examples_SUITE.erl +++ b/lib/diameter/test/diameter_examples_SUITE.erl @@ -295,15 +295,15 @@ slave() -> [{timetrap, {minutes, 10}}]. slave(_) -> - T0 = now(), + T0 = diameter_lib:now(), {ok, Node} = ct_slave:start(?MODULE, ?TIMEOUTS), - T1 = now(), + T1 = diameter_lib:now(), T2 = rpc:call(Node, erlang, now, []), {ok, Node} = ct_slave:stop(?MODULE), - now_diff([T0, T1, T2, now()]). + now_diff([T0, T1, T2, diameter_lib:now()]). now_diff([T1,T2|_] = Ts) -> - [timer:now_diff(T2,T1) | now_diff(tl(Ts))]; + [diameter_lib:micro_diff(T2,T1) | now_diff(tl(Ts))]; now_diff(_) -> []. |