aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test/application_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-05-26 13:55:53 +0200
committerBjörn Gustavsson <[email protected]>2015-05-26 18:11:27 +0200
commit2065d20e00a5e5d1e526768c3be33d5ff86d2b53 (patch)
tree1ee4f7920ba5b28298e8ed286c381f1d844d2890 /lib/kernel/test/application_SUITE.erl
parent032f106a1ebdbf310dd430b2169f55967e1d1a92 (diff)
downloadotp-2065d20e00a5e5d1e526768c3be33d5ff86d2b53.tar.gz
otp-2065d20e00a5e5d1e526768c3be33d5ff86d2b53.tar.bz2
otp-2065d20e00a5e5d1e526768c3be33d5ff86d2b53.zip
Eliminate use of erlang:now/0 for generating unique node names
Use erlang:unique_integer([positive]) when generating unique node names.
Diffstat (limited to 'lib/kernel/test/application_SUITE.erl')
-rw-r--r--lib/kernel/test/application_SUITE.erl5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/kernel/test/application_SUITE.erl b/lib/kernel/test/application_SUITE.erl
index 4901206c8e..59efe85480 100644
--- a/lib/kernel/test/application_SUITE.erl
+++ b/lib/kernel/test/application_SUITE.erl
@@ -2699,10 +2699,7 @@ node_names(Names, Config) ->
node_name(Name, Config) ->
U = "_",
- {{Y,M,D}, {H,Min,S}} = calendar:now_to_local_time(now()),
- Date = io_lib:format("~4w_~2..0w_~2..0w__~2..0w_~2..0w_~2..0w",
- [Y,M,D, H,Min,S]),
- L = lists:flatten(Date),
+ L = integer_to_list(erlang:unique_integer([positive])),
lists:concat([Name,U,?testcase,U,U,L]).
stop_node_nice(Node) when is_atom(Node) ->