.mean was replaced with .mean_<threshold>, so update unit tests.

This commit is contained in:
Mike Heffner 2012-04-02 13:48:35 -04:00
Родитель bfa8e20c96
Коммит 3517cc7fb6
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -74,6 +74,7 @@ module.exports = {
var configfile = "{graphService: \"graphite\"\n\
, batch: 200 \n\
, flushInterval: " + this.myflush + " \n\
, percentThreshold: 90\n\
, port: 8125\n\
, dumpMessages: false \n\
, debug: false\n\
@ -175,7 +176,7 @@ module.exports = {
test.ok(_.any(hashes,numstat_test), 'statsd.numStats should be 1');
var testtimervalue_test = function(post){
var mykey = 'stats.timers.a_test_value.mean';
var mykey = 'stats.timers.a_test_value.mean_90';
return _.include(_.keys(post),mykey) && (post[mykey] == testvalue);
};
test.ok(_.any(hashes,testtimervalue_test), 'stats.timers.a_test_value.mean should be ' + testvalue);