{"action":"created","issue":{"url":"https://api.github.com/repos/mafintosh/torrent-stream/issues/110","labels_url":"https://api.github.com/repos/mafintosh/torrent-stream/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/mafintosh/torrent-stream/issues/110/comments","events_url":"https://api.github.com/repos/mafintosh/torrent-stream/issues/110/events","html_url":"https://github.com/mafintosh/torrent-stream/issues/110","id":69745070,"number":110,"title":"failed tests in node 0.12","user":{"login":"nickdesaulniers","id":1823839,"avatar_url":"https://avatars.githubusercontent.com/u/1823839?v=3","gravatar_id":"","url":"https://api.github.com/users/nickdesaulniers","html_url":"https://github.com/nickdesaulniers","followers_url":"https://api.github.com/users/nickdesaulniers/followers","following_url":"https://api.github.com/users/nickdesaulniers/following{/other_user}","gists_url":"https://api.github.com/users/nickdesaulniers/gists{/gist_id}","starred_url":"https://api.github.com/users/nickdesaulniers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickdesaulniers/subscriptions","organizations_url":"https://api.github.com/users/nickdesaulniers/orgs","repos_url":"https://api.github.com/users/nickdesaulniers/repos","events_url":"https://api.github.com/users/nickdesaulniers/events{/privacy}","received_events_url":"https://api.github.com/users/nickdesaulniers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-21T05:06:00Z","updated_at":"2015-04-21T05:43:48Z","closed_at":null,"body":"```\r\ngit clone https://github.com/mafintosh/torrent-stream.git\r\ncd torrent-stream\r\nnpm i\r\nnpm t\r\n```\r\nprints:\r\n```\r\n> torrent-stream@0.18.1 test /Users/Nicholas/code/node/torrent-stream\r\n> tap test/*.js\r\n\r\nok test/auto-block.js ................................... 8/8\r\nnot ok test/basic.js .................................... 0/1\r\n    Command: \"/Users/Nicholas/.nvm/versions/node/v0.12.0/bin/node basic.js\"\r\n    TAP version 13\r\n    not ok 1 test/basic.js\r\n      ---\r\n        exit:     ~\r\n        timedOut: true\r\n        signal:   SIGTERM\r\n        command:  \"/Users/Nicholas/.nvm/versions/node/v0.12.0/bin/node basic.js\"\r\n      ...\r\n\r\n    1..1\r\n    # tests 1\r\n    # fail  1\r\n\r\nok test/blocklist.js .................................. 12/12\r\nnot ok test/storage.js ................................ 19/21\r\n    Command: \"/Users/Nicholas/.nvm/versions/node/v0.12.0/bin/node storage.js\"\r\n    TAP version 13\r\n    ok 1 should be ready\r\n    ok 2 should verify all the pieces\r\n    ok 3 should have one file\r\n    ok 4 should be equal\r\n    ok 5 should be equal\r\n    not ok 6 should be equal\r\n      ---\r\n        file:   /Users/Nicholas/code/node/torrent-stream/test/storage.js\r\n        line:   38\r\n        column: 6\r\n        stack:\r\n          - |\r\n            getCaller (/Users/Nicholas/code/node/torrent-stream/node_modules/tap/lib/tap-assert.js:418:17)\r\n          - |\r\n            assert (/Users/Nicholas/code/node/torrent-stream/node_modules/tap/lib/tap-assert.js:21:16)\r\n          - |\r\n            Function.equal (/Users/Nicholas/code/node/torrent-stream/node_modules/tap/lib/tap-assert.js:162:10)\r\n          - |\r\n            Test._testAssert [as equal] (/Users/Nicholas/code/node/torrent-stream/node_modules/tap/lib/tap-test.js:87:16)\r\n          - |\r\n            null.<anonymous> (/Users/Nicholas/code/node/torrent-stream/test/storage.js:38:6)\r\n          - |\r\n            emit (events.js:104:17)\r\n          - |\r\n            emitReadable_ (_stream_readable.js:424:10)\r\n          - |\r\n            emitReadable (_stream_readable.js:418:7)\r\n          - |\r\n            onEofChunk (_stream_readable.js:401:3)\r\n          - |\r\n            readableAddChunk (_stream_readable.js:146:7)\r\n        found:  ~\r\n        wanted: amet.\r\n        type:\r\n          found:  undefined\r\n          wanted: undefined\r\n      ...\r\n    not ok 7 test count != plan\r\n      ---\r\n        file:   node.js\r\n        line:   355\r\n        column: 11\r\n        stack:\r\n          - |\r\n            getCaller (/Users/Nicholas/code/node/torrent-stream/node_modules/tap/lib/tap-assert.js:418:17)\r\n          - |\r\n            assert (/Users/Nicholas/code/node/torrent-stream/node_modules/tap/lib/tap-assert.js:21:16)\r\n          - |\r\n            Function.equal (/Users/Nicholas/code/node/torrent-stream/node_modules/tap/lib/tap-assert.js:162:10)\r\n          - |\r\n            Test.Harness.end (/Users/Nicholas/code/node/torrent-stream/node_modules/tap/lib/tap-harness.js:117:31)\r\n          - |\r\n            Test._endNice (/Users/Nicholas/code/node/torrent-stream/node_modules/tap/lib/tap-test.js:70:26)\r\n          - |\r\n            process._tickCallback (node.js:355:11)\r\n        found:  2\r\n        wanted: 1\r\n      ...\r\n    ok 8 should be equal\r\n    ok 9 should be equal\r\n    ok 10 should be equal\r\n    ok 11 should be equal\r\n    ok 12 should be equal\r\n    ok 13 should be equal\r\n    ok 14 should be equal\r\n    ok 15 should be equal\r\n    ok 16 should be equal\r\n    ok 17 should be equal\r\n    ok 18 should be equal\r\n    ok 19 should be equal\r\n    ok 20 should be destroyed\r\n    ok 21 test/storage.js\r\n\r\n    1..21\r\n    # tests 21\r\n    # pass  19\r\n    # fail  2\r\n\r\nok test/tracker.js .................................... 23/23\r\ntotal ................................................. 62/65\r\n\r\nnot ok\r\nnpm ERR! Test failed.  See above for more details.\r\n```"},"comment":{"url":"https://api.github.com/repos/mafintosh/torrent-stream/issues/comments/94646313","html_url":"https://github.com/mafintosh/torrent-stream/issues/110#issuecomment-94646313","issue_url":"https://api.github.com/repos/mafintosh/torrent-stream/issues/110","id":94646313,"user":{"login":"nickdesaulniers","id":1823839,"avatar_url":"https://avatars.githubusercontent.com/u/1823839?v=3","gravatar_id":"","url":"https://api.github.com/users/nickdesaulniers","html_url":"https://github.com/nickdesaulniers","followers_url":"https://api.github.com/users/nickdesaulniers/followers","following_url":"https://api.github.com/users/nickdesaulniers/following{/other_user}","gists_url":"https://api.github.com/users/nickdesaulniers/gists{/gist_id}","starred_url":"https://api.github.com/users/nickdesaulniers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickdesaulniers/subscriptions","organizations_url":"https://api.github.com/users/nickdesaulniers/orgs","repos_url":"https://api.github.com/users/nickdesaulniers/repos","events_url":"https://api.github.com/users/nickdesaulniers/events{/privacy}","received_events_url":"https://api.github.com/users/nickdesaulniers/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T05:43:48Z","updated_at":"2015-04-21T05:43:48Z","body":"For test/storage.js, it seems that `file.createReadStream({ start: 36109 }).on('readable', cb)` fires twice, with the first time being correct, the second time `stream.read(6)` is `null`.  Curious as to why onreadable is firing twice in Node 0.12?"}}