aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test/diameter_watchdog_SUITE.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2015-03-05 01:34:41 +0100
committerAnders Svensson <[email protected]>2015-03-05 01:34:41 +0100
commitac82610a03c8b17b6bcae91aa4252a1930c51e85 (patch)
tree23c9bd58e6792ed656af6889cafbda8805377b55 /lib/diameter/test/diameter_watchdog_SUITE.erl
parent2456cf80733d3ee5d1c0dca3c52366166d8ad2b6 (diff)
parent71b52f31772210a7160317966ca46e36140b935a (diff)
downloadotp-ac82610a03c8b17b6bcae91aa4252a1930c51e85.tar.gz
otp-ac82610a03c8b17b6bcae91aa4252a1930c51e85.tar.bz2
otp-ac82610a03c8b17b6bcae91aa4252a1930c51e85.zip
Merge branch 'maint'
Diffstat (limited to 'lib/diameter/test/diameter_watchdog_SUITE.erl')
-rw-r--r--lib/diameter/test/diameter_watchdog_SUITE.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/diameter/test/diameter_watchdog_SUITE.erl b/lib/diameter/test/diameter_watchdog_SUITE.erl
index b6e8730ec2..5a3ff2c92f 100644
--- a/lib/diameter/test/diameter_watchdog_SUITE.erl
+++ b/lib/diameter/test/diameter_watchdog_SUITE.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2010-2013. All Rights Reserved.
+%% Copyright Ericsson AB 2010-2015. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -420,6 +420,7 @@ suspect(TRef, false, SvcName, N) ->
%% abuse/1
abuse(F) ->
+
[] = run([[abuse, F, T] || T <- [listen, connect]]).
abuse(F, [_,_,_|_] = Args) ->
@@ -672,7 +673,8 @@ jitter(T,D) ->
%% Generate a unique hostname for the faked peer.
hostname() ->
- lists:flatten(io_lib:format("~p-~p-~p", tuple_to_list(now()))).
+ {M,S,U} = diameter_util:timestamp(),
+ lists:flatten(io_lib:format("~p-~p-~p", [M,S,U])).
putr(Key, Val) ->
put({?MODULE, Key}, Val).