diff options
author | Dave Cottlehuber <dch@apache.org> | 2013-03-19 10:12:02 +0100 |
---|---|---|
committer | Dave Cottlehuber <dch@apache.org> | 2013-04-25 00:14:28 +0200 |
commit | f3e6391d92e135d64c4b2a6f7722ebb5d852b6b3 (patch) | |
tree | 5c63295f20b55558ce1ab9ac9a9769416b95c3e7 | |
parent | cdf8949d341722423828471ca45d71f2fcb3a36d (diff) | |
download | couchdb-f3e6391d92e135d64c4b2a6f7722ebb5d852b6b3.tar.gz |
COUCHDB-1696 sort ETS table results in test suite to support R16B
-rwxr-xr-x | test/etap/120-stats-collect.t | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/etap/120-stats-collect.t b/test/etap/120-stats-collect.t index dee88765c..a30f9ac5d 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. |