{"action":"created","issue":{"url":"https://api.github.com/repos/idanto/express-node-metrics/issues/22","repository_url":"https://api.github.com/repos/idanto/express-node-metrics","labels_url":"https://api.github.com/repos/idanto/express-node-metrics/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/idanto/express-node-metrics/issues/22/comments","events_url":"https://api.github.com/repos/idanto/express-node-metrics/issues/22/events","html_url":"https://github.com/idanto/express-node-metrics/issues/22","id":292382182,"number":22,"title":"The package catch the event loop and not let mocha to finish his process. node 8","user":{"login":"manor21","id":12396608,"avatar_url":"https://avatars2.githubusercontent.com/u/12396608?v=4","gravatar_id":"","url":"https://api.github.com/users/manor21","html_url":"https://github.com/manor21","followers_url":"https://api.github.com/users/manor21/followers","following_url":"https://api.github.com/users/manor21/following{/other_user}","gists_url":"https://api.github.com/users/manor21/gists{/gist_id}","starred_url":"https://api.github.com/users/manor21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manor21/subscriptions","organizations_url":"https://api.github.com/users/manor21/orgs","repos_url":"https://api.github.com/users/manor21/repos","events_url":"https://api.github.com/users/manor21/events{/privacy}","received_events_url":"https://api.github.com/users/manor21/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-01-29T12:03:32Z","updated_at":"2018-04-22T20:57:25Z","closed_at":null,"author_association":"NONE","body":"The package catch the event loop and not let mocha to finish his process when running tests.\r\n\r\nexample:\r\ntest:\r\n```\r\n'use strict';\r\n\r\nconst createFlowController = require('./metrics-controller');\r\ndescribe('Testing create flow controller', function () {\r\n\r\n    it('some test',function () {\r\n\r\n    })\r\n});\r\n```\r\n\r\nmetrics-controller.js:\r\n```\r\n\r\n'use strict';\r\n\r\nlet express = require(\"express\");\r\nlet router = express.Router();\r\nlet metrics = require('express-node-metrics').metrics; //TODO\r\n\r\nrouter.get('/', function (req, res) {\r\n    res.json(JSON.parse(metrics.getAll(req.query.reset)));\r\n});\r\n\r\nmodule.exports = router;\r\n```"},"comment":{"url":"https://api.github.com/repos/idanto/express-node-metrics/issues/comments/383411774","html_url":"https://github.com/idanto/express-node-metrics/issues/22#issuecomment-383411774","issue_url":"https://api.github.com/repos/idanto/express-node-metrics/issues/22","id":383411774,"user":{"login":"conradoqg","id":6283218,"avatar_url":"https://avatars3.githubusercontent.com/u/6283218?v=4","gravatar_id":"","url":"https://api.github.com/users/conradoqg","html_url":"https://github.com/conradoqg","followers_url":"https://api.github.com/users/conradoqg/followers","following_url":"https://api.github.com/users/conradoqg/following{/other_user}","gists_url":"https://api.github.com/users/conradoqg/gists{/gist_id}","starred_url":"https://api.github.com/users/conradoqg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conradoqg/subscriptions","organizations_url":"https://api.github.com/users/conradoqg/orgs","repos_url":"https://api.github.com/users/conradoqg/repos","events_url":"https://api.github.com/users/conradoqg/events{/privacy}","received_events_url":"https://api.github.com/users/conradoqg/received_events","type":"User","site_admin":false},"created_at":"2018-04-22T20:57:25Z","updated_at":"2018-04-22T20:57:25Z","author_association":"NONE","body":"I'm having the same problem. I tried to do a getAll(true) to see if that solves the problem, but without success."}}
{"actor":{"display_login":"conradoqg"}}