{"action":"created","issue":{"url":"https://api.github.com/repos/diasdavid/node-libp2p-kad-routing/issues/2","labels_url":"https://api.github.com/repos/diasdavid/node-libp2p-kad-routing/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/diasdavid/node-libp2p-kad-routing/issues/2/comments","events_url":"https://api.github.com/repos/diasdavid/node-libp2p-kad-routing/issues/2/events","html_url":"https://github.com/diasdavid/node-libp2p-kad-routing/issues/2","id":107343475,"number":2,"title":"Compliance test pass, but process won't exit","user":{"login":"diasdavid","id":1211152,"avatar_url":"https://avatars.githubusercontent.com/u/1211152?v=3","gravatar_id":"","url":"https://api.github.com/users/diasdavid","html_url":"https://github.com/diasdavid","followers_url":"https://api.github.com/users/diasdavid/followers","following_url":"https://api.github.com/users/diasdavid/following{/other_user}","gists_url":"https://api.github.com/users/diasdavid/gists{/gist_id}","starred_url":"https://api.github.com/users/diasdavid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diasdavid/subscriptions","organizations_url":"https://api.github.com/users/diasdavid/orgs","repos_url":"https://api.github.com/users/diasdavid/repos","events_url":"https://api.github.com/users/diasdavid/events{/privacy}","received_events_url":"https://api.github.com/users/diasdavid/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/diasdavid/node-libp2p-kad-routing/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/diasdavid/node-libp2p-kad-routing/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-19T16:37:29Z","updated_at":"2015-09-25T07:59:38Z","closed_at":null,"body":"\r\n```\r\n> node tests/compliance-test.js\r\n\r\nTAP version 13\r\n# Simple findPeers test\r\nok 1 null\r\nok 2 null\r\nok 3 should be equal\r\n# time: 113 ms\r\n# should exit here successfully\r\n```"},"comment":{"url":"https://api.github.com/repos/diasdavid/node-libp2p-kad-routing/issues/comments/143153295","html_url":"https://github.com/diasdavid/node-libp2p-kad-routing/issues/2#issuecomment-143153295","issue_url":"https://api.github.com/repos/diasdavid/node-libp2p-kad-routing/issues/2","id":143153295,"user":{"login":"masylum","id":28248,"avatar_url":"https://avatars.githubusercontent.com/u/28248?v=3","gravatar_id":"","url":"https://api.github.com/users/masylum","html_url":"https://github.com/masylum","followers_url":"https://api.github.com/users/masylum/followers","following_url":"https://api.github.com/users/masylum/following{/other_user}","gists_url":"https://api.github.com/users/masylum/gists{/gist_id}","starred_url":"https://api.github.com/users/masylum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masylum/subscriptions","organizations_url":"https://api.github.com/users/masylum/orgs","repos_url":"https://api.github.com/users/masylum/repos","events_url":"https://api.github.com/users/masylum/events{/privacy}","received_events_url":"https://api.github.com/users/masylum/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T07:59:38Z","updated_at":"2015-09-25T07:59:38Z","body":"The issue is that teardown is never called, therefore the swarms keep listening and node does not exist accordingly.\r\n\r\nhttps://github.com/diasdavid/abstract-peer-routing/blob/master/tests/base-test.js#L11\r\n\r\nWhy is this line commented? Uncommenting solves the issue.\r\n\r\nRelated: https://github.com/diasdavid/node-libp2p-kad-routing/pull/4"}}