You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by dc...@apache.org on 2013/04/25 00:18:38 UTC
[7/8] git commit: updated refs/heads/master to d751a39
COUCHDB-1696 sort ETS table results in test suite to support R16B
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/f3e6391d
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/f3e6391d
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/f3e6391d
Branch: refs/heads/master
Commit: f3e6391d92e135d64c4b2a6f7722ebb5d852b6b3
Parents: cdf8949
Author: Dave Cottlehuber <dc...@apache.org>
Authored: Tue Mar 19 10:12:02 2013 +0100
Committer: Dave Cottlehuber <dc...@apache.org>
Committed: Thu Apr 25 00:14:28 2013 +0200
----------------------------------------------------------------------
test/etap/120-stats-collect.t | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/f3e6391d/test/etap/120-stats-collect.t
----------------------------------------------------------------------
diff --git a/test/etap/120-stats-collect.t b/test/etap/120-stats-collect.t
index dee8876..a30f9ac 100755
--- a/test/etap/120-stats-collect.t
+++ b/test/etap/120-stats-collect.t
@@ -84,7 +84,7 @@ test_proc_counting() ->
etap:is(
couch_stats_collector:get(hoopla),
1,
- "track_process_count incrememnts the counter."
+ "track_process_count increments the counter."
),
TwicePid = spawn(fun() ->
@@ -124,21 +124,21 @@ test_all() ->
couch_stats_collector:record(bar, 0.0),
couch_stats_collector:record(bar, 1.0),
etap:is(
- couch_stats_collector:all(),
- [{foo, 0}, {hoopla, 0}, {bar, [1.0, 0.0]}],
+ lists:sort(couch_stats_collector:all()),
+ [ {bar,[1.0,0.0]}, {foo,0}, { hoopla,0} ],
"all/0 returns all counters and absolute values."
),
etap:is(
- couch_stats_collector:all(incremental),
- [{foo, 0}, {hoopla, 0}],
+ lists:sort(couch_stats_collector:all(incremental)),
+ [ {foo, 0}, {hoopla, 0} ],
"all/1 returns only the specified type."
),
couch_stats_collector:record(zing, 90),
etap:is(
- couch_stats_collector:all(absolute),
- [{zing, [90]}, {bar, [1.0, 0.0]}],
+ lists:sort(couch_stats_collector:all(absolute)),
+ [ {bar,[1.0,0.0]}, {zing,"Z"} ],
"all/1 returns only the specified type."
),
ok.