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/05/28 20:48:36 UTC

git commit: updated refs/heads/1696-backport-mochiweb-2-4-2-1.3.x to 92c33a7

Updated Branches:
  refs/heads/1696-backport-mochiweb-2-4-2-1.3.x 266cd3288 -> 92c33a7ee


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/92c33a7e
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/92c33a7e
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/92c33a7e

Branch: refs/heads/1696-backport-mochiweb-2-4-2-1.3.x
Commit: 92c33a7ee7d753ace9e1ea764fd74a329e6ab3fb
Parents: 266cd32
Author: Dave Cottlehuber <dc...@apache.org>
Authored: Tue Mar 19 10:12:02 2013 +0100
Committer: Dave Cottlehuber <dc...@apache.org>
Committed: Tue May 28 20:43:10 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/92c33a7e/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.