Permalink
Browse files

fix two tests now that we added an additional default stat

  • Loading branch information...
1 parent dc8cf29 commit 4530718f40944a4e2bf55be01b547e37ffa6ca88 @draco2003 draco2003 committed Nov 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/graphite_tests.js
View
@@ -149,7 +149,7 @@ module.exports = {
return data;
});
test.ok(_.include(_.map(entries,function(x) { return _.keys(x)[0] }),'statsd.numStats'),'graphite output includes numStats');
- test.equal(_.find(entries, function(x) { return _.keys(x)[0] == 'statsd.numStats' })['statsd.numStats'],2);
+ test.equal(_.find(entries, function(x) { return _.keys(x)[0] == 'statsd.numStats' })['statsd.numStats'],3);
test.done();
});
});
@@ -205,7 +205,7 @@ module.exports = {
});
var numstat_test = function(post){
var mykey = 'statsd.numStats';
- return _.include(_.keys(post),mykey) && (post[mykey] == 3);
+ return _.include(_.keys(post),mykey) && (post[mykey] == 4);
};
test.ok(_.any(hashes,numstat_test), 'statsd.numStats should be 1');

0 comments on commit 4530718

Please sign in to comment.