Skip to content

Commit

Permalink
Fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
mojodna committed Jul 7, 2013
1 parent 187ce7c commit f9bad3b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,13 +389,11 @@ describe("metrics", function() {
it("should write a metricsd string to the console", function(done) {
var metric = "prefix.metric.name:1234|g";

metrics.logger = {
log: function() {
var msg = util.format.apply(null, arguments);
expect(msg).to.equal("metric=" + metric);
metrics.logger = function() {
var msg = util.format.apply(null, arguments);
expect(msg).to.equal("metric=" + metric);

done();
}
done();
};

metrics.write(metric);
Expand Down

0 comments on commit f9bad3b

Please sign in to comment.