Adding metric logging mechanism

This commit is contained in:
hbeeken
2015-01-27 14:41:20 +00:00
parent 56ef982345
commit 0bfbb12211
10 changed files with 267 additions and 168 deletions

View File

@@ -551,7 +551,6 @@ describe('Flow', function() {
describe('#applyConfig',function() {
var getType;
var getNode;
var flowsAdd;
var credentialsClean;
var stoppedNodes = {};
@@ -562,6 +561,7 @@ describe('Flow', function() {
var node = this;
this.handled = 0;
this.stopped = false;
currentNodes[node.id] = node;
this.on('input',function(msg) {
node.handled++;
node.send(msg);
@@ -578,9 +578,6 @@ describe('Flow', function() {
before(function() {
flowsAdd = sinon.stub(flows,"add",function(node) {
currentNodes[node.id] = node;
});
getNode = sinon.stub(flows,"get",function(id) {
return currentNodes[id];
});
@@ -592,7 +589,6 @@ describe('Flow', function() {
});
after(function() {
getType.restore();
flowsAdd.restore();
credentialsClean.restore();
getNode.restore();
});