{"action":"created","issue":{"url":"https://api.github.com/repos/substack/stream-adventure/issues/155","labels_url":"https://api.github.com/repos/substack/stream-adventure/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/substack/stream-adventure/issues/155/comments","events_url":"https://api.github.com/repos/substack/stream-adventure/issues/155/events","html_url":"https://github.com/substack/stream-adventure/issues/155","id":108565900,"number":155,"title":"Duplexer2 fails. Duplexer passes.","user":{"login":"aktary","id":6234384,"avatar_url":"https://avatars.githubusercontent.com/u/6234384?v=3","gravatar_id":"","url":"https://api.github.com/users/aktary","html_url":"https://github.com/aktary","followers_url":"https://api.github.com/users/aktary/followers","following_url":"https://api.github.com/users/aktary/following{/other_user}","gists_url":"https://api.github.com/users/aktary/gists{/gist_id}","starred_url":"https://api.github.com/users/aktary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aktary/subscriptions","organizations_url":"https://api.github.com/users/aktary/orgs","repos_url":"https://api.github.com/users/aktary/repos","events_url":"https://api.github.com/users/aktary/events{/privacy}","received_events_url":"https://api.github.com/users/aktary/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-27T22:55:53Z","updated_at":"2015-10-02T03:39:28Z","closed_at":null,"body":"On the first \"Duplexer\" problem, the exact same solution passes when using duplexer and fails (without a descriptive reason) when using duplexer2 (as directed in the instructions).  Below is my code:\r\n\r\n    var spawn = require('child_process').spawn;\r\n    var dup = require('duplexer');\r\n\r\n    module.exports = function(cmd, args){\r\n         var child = spawn(cmd,args);\r\n         return dup(child.stdin, child.stdout);\r\n     }\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/substack/stream-adventure/issues/comments/144909446","html_url":"https://github.com/substack/stream-adventure/issues/155#issuecomment-144909446","issue_url":"https://api.github.com/repos/substack/stream-adventure/issues/155","id":144909446,"user":{"login":"prashcr","id":7514066,"avatar_url":"https://avatars.githubusercontent.com/u/7514066?v=3","gravatar_id":"","url":"https://api.github.com/users/prashcr","html_url":"https://github.com/prashcr","followers_url":"https://api.github.com/users/prashcr/followers","following_url":"https://api.github.com/users/prashcr/following{/other_user}","gists_url":"https://api.github.com/users/prashcr/gists{/gist_id}","starred_url":"https://api.github.com/users/prashcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prashcr/subscriptions","organizations_url":"https://api.github.com/users/prashcr/orgs","repos_url":"https://api.github.com/users/prashcr/repos","events_url":"https://api.github.com/users/prashcr/events{/privacy}","received_events_url":"https://api.github.com/users/prashcr/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T03:39:28Z","updated_at":"2015-10-02T03:39:28Z","body":"I found it really intriguing that the solution for this exercise works perfectly, and it uses duplexer2 as well.\r\nSo I tried running both and comparing outputs.\r\n```\r\n➜  stream-adventure git:(master) ✗ stream-adventure run duplexer.js\r\ngdyj\r\n➜  stream-adventure git:(master) ✗ stream-adventure run ~/.nvm/versions/node/v4.1.1/lib/node_modules/stream-adventure/test/solutions/duplexer.js\r\ncmjq\r\ncbu\r\ncvtu\r\nczuf\r\ncpy\r\ncffq\r\ncbabbs\r\ncpuumf\r\ncppmfbo\r\ncffu\r\ncbmmppo\r\ncppq\r\ncfrvfbui\r\ncblf\r\n```\r\nThe output seems to be completely different. The tests should have printed this to the console.  \r\n  \r\nI noticed that the official solution uses `duplexer2@0.0.2`, instead of `duplexer2@0.1.0`, which is the latest.\r\n\r\nSo I tried it for myself, and it works.\r\n```\r\nnpm uninstall duplexer2\r\nnpm install duplexer2@0.0.2\r\n```"}}