Skip to content

Commit

Permalink
update gitignore, test
Browse files Browse the repository at this point in the history
  • Loading branch information
timisbusy committed Jun 2, 2014
1 parent 47d6139 commit b61bdbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
node_modules
tests/conf.json
5 changes: 3 additions & 2 deletions tests/test.js
@@ -1,6 +1,7 @@
var Stats = require('../index.js');
var conf = require('./conf.json');

var stats = new Stats(); // defaults to localhost, be sure you have mgmt plugin installed: http://www.rabbitmq.com/management.html
var stats = new Stats(conf); // defaults to localhost, be sure you have mgmt plugin installed: http://www.rabbitmq.com/management.html

stats.whoami(function (err, res, data) {
if(err) { throw err; }
Expand All @@ -16,4 +17,4 @@ stats.queues(function(err, res, data){
console.log('message_stats: ', queue.message_stats.deliver_get);
}
});
});
});

0 comments on commit b61bdbb

Please sign in to comment.