aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2015-08-07 08:57:18 +0200
committerAnders Svensson <[email protected]>2015-08-07 09:01:02 +0200
commit9b09b6473e85c1753e9a915d44b7df679a79cd8f (patch)
tree7133fb442e716685cf3c685f60a211ea258722f2
parente6e64a36fbc26e30b97df3bc1105eceef104f318 (diff)
downloadotp-9b09b6473e85c1753e9a915d44b7df679a79cd8f.tar.gz
otp-9b09b6473e85c1753e9a915d44b7df679a79cd8f.tar.bz2
otp-9b09b6473e85c1753e9a915d44b7df679a79cd8f.zip
Remove unnecessary sorting in stats suite
The ordering of (ets) diameter_stats (also unnecessary) ensures the sorting.
-rw-r--r--lib/diameter/test/diameter_stats_SUITE.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/diameter/test/diameter_stats_SUITE.erl b/lib/diameter/test/diameter_stats_SUITE.erl
index 76ff764671..b08d7a05d2 100644
--- a/lib/diameter/test/diameter_stats_SUITE.erl
+++ b/lib/diameter/test/diameter_stats_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
@@ -95,7 +95,7 @@ read(_) ->
7 = ?stat:incr(C1, Ref, 7),
Self = self(),
[{Ref, [{C1,7}]}, {Self, [{C1,2}, {C2,1}]}]
- = lists:sort(?stat:read([self(), Ref, make_ref()])),
+ = ?stat:read([self(), Ref, make_ref()]),
[] = ?stat:read([]),
[] = ?stat:read([make_ref()]),
?stat:flush([self(), Ref, make_ref()]).
@@ -115,7 +115,7 @@ sum(_) ->
[{Self, [{C1,1}, {C2,2}]}]
= ?stat:sum([self()]),
[{Ref, [{C1,7}]}, {Self, [{C1,1}, {C2,2}]}]
- = lists:sort(?stat:flush([self(), Ref])).
+ = ?stat:flush([self(), Ref]).
flush(_) ->
Ref = make_ref(),