{"action":"created","comment":{"url":"https://api.github.com/repos/ipfs/node-ipfs-api/pulls/comments/37685326","id":37685326,"diff_hunk":"@@ -25,12 +25,13 @@ describe('ipfs node api', function () {\n     ipfsd.disposable(function (err, node) {\n       if (err) throw err\n       log('ipfs init done')\n+      ipfsNode = node\n \n-      node.startDaemon(function (err, ignore) {\n+      ipfsNode.startDaemon(function (err, ignore) {\n         if (err) throw err\n         log('ipfs daemon running')\n \n-        ipfs = ipfsApi(node.apiAddr)\n+        ipfs = ipfsApi(ipfsNode.apiAddr)","path":"test/test.js","position":21,"original_position":21,"commit_id":"950c5aa9d809c12aa097f2d5ec895790d96287b6","original_commit_id":"950c5aa9d809c12aa097f2d5ec895790d96287b6","user":{"login":"ckeenan","id":1154540,"avatar_url":"https://avatars.githubusercontent.com/u/1154540?v=3","gravatar_id":"","url":"https://api.github.com/users/ckeenan","html_url":"https://github.com/ckeenan","followers_url":"https://api.github.com/users/ckeenan/followers","following_url":"https://api.github.com/users/ckeenan/following{/other_user}","gists_url":"https://api.github.com/users/ckeenan/gists{/gist_id}","starred_url":"https://api.github.com/users/ckeenan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckeenan/subscriptions","organizations_url":"https://api.github.com/users/ckeenan/orgs","repos_url":"https://api.github.com/users/ckeenan/repos","events_url":"https://api.github.com/users/ckeenan/events{/privacy}","received_events_url":"https://api.github.com/users/ckeenan/received_events","type":"User","site_admin":false},"body":"Wanted a reference to the node so I could stop the daemon and check for the error in the last test. I can revert back to using `node.*` instead of `ipfsNode.*` for this before() block.. I thought it was more readable to stick with one variable name","created_at":"2015-08-21T22:47:21Z","updated_at":"2015-08-21T22:47:21Z","html_url":"https://github.com/ipfs/node-ipfs-api/pull/49#discussion_r37685326","pull_request_url":"https://api.github.com/repos/ipfs/node-ipfs-api/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/ipfs/node-ipfs-api/pulls/comments/37685326"},"html":{"href":"https://github.com/ipfs/node-ipfs-api/pull/49#discussion_r37685326"},"pull_request":{"href":"https://api.github.com/repos/ipfs/node-ipfs-api/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/ipfs/node-ipfs-api/pulls/49","id":43059821,"html_url":"https://github.com/ipfs/node-ipfs-api/pull/49","diff_url":"https://github.com/ipfs/node-ipfs-api/pull/49.diff","patch_url":"https://github.com/ipfs/node-ipfs-api/pull/49.patch","issue_url":"https://api.github.com/repos/ipfs/node-ipfs-api/issues/49","number":49,"state":"open","locked":false,"title":"error trap & test for stopped daemon","user":{"login":"ckeenan","id":1154540,"avatar_url":"https://avatars.githubusercontent.com/u/1154540?v=3","gravatar_id":"","url":"https://api.github.com/users/ckeenan","html_url":"https://github.com/ckeenan","followers_url":"https://api.github.com/users/ckeenan/followers","following_url":"https://api.github.com/users/ckeenan/following{/other_user}","gists_url":"https://api.github.com/users/ckeenan/gists{/gist_id}","starred_url":"https://api.github.com/users/ckeenan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckeenan/subscriptions","organizations_url":"https://api.github.com/users/ckeenan/orgs","repos_url":"https://api.github.com/users/ckeenan/repos","events_url":"https://api.github.com/users/ckeenan/events{/privacy}","received_events_url":"https://api.github.com/users/ckeenan/received_events","type":"User","site_admin":false},"body":"This should resolve #48 ","created_at":"2015-08-21T17:12:13Z","updated_at":"2015-08-21T22:47:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c22b3e43fb3470338c83a448945f47cb7f015029","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ipfs/node-ipfs-api/pulls/49/commits","review_comments_url":"https://api.github.com/repos/ipfs/node-ipfs-api/pulls/49/comments","review_comment_url":"https://api.github.com/repos/ipfs/node-ipfs-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ipfs/node-ipfs-api/issues/49/comments","statuses_url":"https://api.github.com/repos/ipfs/node-ipfs-api/statuses/950c5aa9d809c12aa097f2d5ec895790d96287b6","head":{"label":"ckeenan:master","ref":"master","sha":"950c5aa9d809c12aa097f2d5ec895790d96287b6","user":{"login":"ckeenan","id":1154540,"avatar_url":"https://avatars.githubusercontent.com/u/1154540?v=3","gravatar_id":"","url":"https://api.github.com/users/ckeenan","html_url":"https://github.com/ckeenan","followers_url":"https://api.github.com/users/ckeenan/followers","following_url":"https://api.github.com/users/ckeenan/following{/other_user}","gists_url":"https://api.github.com/users/ckeenan/gists{/gist_id}","starred_url":"https://api.github.com/users/ckeenan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckeenan/subscriptions","organizations_url":"https://api.github.com/users/ckeenan/orgs","repos_url":"https://api.github.com/users/ckeenan/repos","events_url":"https://api.github.com/users/ckeenan/events{/privacy}","received_events_url":"https://api.github.com/users/ckeenan/received_events","type":"User","site_admin":false},"repo":{"id":41158518,"name":"node-ipfs-api","full_name":"ckeenan/node-ipfs-api","owner":{"login":"ckeenan","id":1154540,"avatar_url":"https://avatars.githubusercontent.com/u/1154540?v=3","gravatar_id":"","url":"https://api.github.com/users/ckeenan","html_url":"https://github.com/ckeenan","followers_url":"https://api.github.com/users/ckeenan/followers","following_url":"https://api.github.com/users/ckeenan/following{/other_user}","gists_url":"https://api.github.com/users/ckeenan/gists{/gist_id}","starred_url":"https://api.github.com/users/ckeenan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckeenan/subscriptions","organizations_url":"https://api.github.com/users/ckeenan/orgs","repos_url":"https://api.github.com/users/ckeenan/repos","events_url":"https://api.github.com/users/ckeenan/events{/privacy}","received_events_url":"https://api.github.com/users/ckeenan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ckeenan/node-ipfs-api","description":"A node client library for the IPFS API","fork":true,"url":"https://api.github.com/repos/ckeenan/node-ipfs-api","forks_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/forks","keys_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/teams","hooks_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/hooks","issue_events_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/issues/events{/number}","events_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/events","assignees_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/assignees{/user}","branches_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/branches{/branch}","tags_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/tags","blobs_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/statuses/{sha}","languages_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/languages","stargazers_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/stargazers","contributors_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/contributors","subscribers_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/subscribers","subscription_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/subscription","commits_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/contents/{+path}","compare_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/merges","archive_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/downloads","issues_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/issues{/number}","pulls_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/pulls{/number}","milestones_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/milestones{/number}","notifications_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/labels{/name}","releases_url":"https://api.github.com/repos/ckeenan/node-ipfs-api/releases{/id}","created_at":"2015-08-21T13:53:44Z","updated_at":"2015-08-21T13:53:45Z","pushed_at":"2015-08-21T17:10:23Z","git_url":"git://github.com/ckeenan/node-ipfs-api.git","ssh_url":"git@github.com:ckeenan/node-ipfs-api.git","clone_url":"https://github.com/ckeenan/node-ipfs-api.git","svn_url":"https://github.com/ckeenan/node-ipfs-api","homepage":"","size":327,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ipfs:master","ref":"master","sha":"801e60020c9ce8ee5558e9b128423827a62adedc","user":{"login":"ipfs","id":10536621,"avatar_url":"https://avatars.githubusercontent.com/u/10536621?v=3","gravatar_id":"","url":"https://api.github.com/users/ipfs","html_url":"https://github.com/ipfs","followers_url":"https://api.github.com/users/ipfs/followers","following_url":"https://api.github.com/users/ipfs/following{/other_user}","gists_url":"https://api.github.com/users/ipfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ipfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipfs/subscriptions","organizations_url":"https://api.github.com/users/ipfs/orgs","repos_url":"https://api.github.com/users/ipfs/repos","events_url":"https://api.github.com/users/ipfs/events{/privacy}","received_events_url":"https://api.github.com/users/ipfs/received_events","type":"Organization","site_admin":false},"repo":{"id":24031839,"name":"node-ipfs-api","full_name":"ipfs/node-ipfs-api","owner":{"login":"ipfs","id":10536621,"avatar_url":"https://avatars.githubusercontent.com/u/10536621?v=3","gravatar_id":"","url":"https://api.github.com/users/ipfs","html_url":"https://github.com/ipfs","followers_url":"https://api.github.com/users/ipfs/followers","following_url":"https://api.github.com/users/ipfs/following{/other_user}","gists_url":"https://api.github.com/users/ipfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ipfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipfs/subscriptions","organizations_url":"https://api.github.com/users/ipfs/orgs","repos_url":"https://api.github.com/users/ipfs/repos","events_url":"https://api.github.com/users/ipfs/events{/privacy}","received_events_url":"https://api.github.com/users/ipfs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ipfs/node-ipfs-api","description":"A node client library for the IPFS API","fork":false,"url":"https://api.github.com/repos/ipfs/node-ipfs-api","forks_url":"https://api.github.com/repos/ipfs/node-ipfs-api/forks","keys_url":"https://api.github.com/repos/ipfs/node-ipfs-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ipfs/node-ipfs-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ipfs/node-ipfs-api/teams","hooks_url":"https://api.github.com/repos/ipfs/node-ipfs-api/hooks","issue_events_url":"https://api.github.com/repos/ipfs/node-ipfs-api/issues/events{/number}","events_url":"https://api.github.com/repos/ipfs/node-ipfs-api/events","assignees_url":"https://api.github.com/repos/ipfs/node-ipfs-api/assignees{/user}","branches_url":"https://api.github.com/repos/ipfs/node-ipfs-api/branches{/branch}","tags_url":"https://api.github.com/repos/ipfs/node-ipfs-api/tags","blobs_url":"https://api.github.com/repos/ipfs/node-ipfs-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ipfs/node-ipfs-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ipfs/node-ipfs-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/ipfs/node-ipfs-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ipfs/node-ipfs-api/statuses/{sha}","languages_url":"https://api.github.com/repos/ipfs/node-ipfs-api/languages","stargazers_url":"https://api.github.com/repos/ipfs/node-ipfs-api/stargazers","contributors_url":"https://api.github.com/repos/ipfs/node-ipfs-api/contributors","subscribers_url":"https://api.github.com/repos/ipfs/node-ipfs-api/subscribers","subscription_url":"https://api.github.com/repos/ipfs/node-ipfs-api/subscription","commits_url":"https://api.github.com/repos/ipfs/node-ipfs-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/ipfs/node-ipfs-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/ipfs/node-ipfs-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/ipfs/node-ipfs-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/ipfs/node-ipfs-api/contents/{+path}","compare_url":"https://api.github.com/repos/ipfs/node-ipfs-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ipfs/node-ipfs-api/merges","archive_url":"https://api.github.com/repos/ipfs/node-ipfs-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ipfs/node-ipfs-api/downloads","issues_url":"https://api.github.com/repos/ipfs/node-ipfs-api/issues{/number}","pulls_url":"https://api.github.com/repos/ipfs/node-ipfs-api/pulls{/number}","milestones_url":"https://api.github.com/repos/ipfs/node-ipfs-api/milestones{/number}","notifications_url":"https://api.github.com/repos/ipfs/node-ipfs-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ipfs/node-ipfs-api/labels{/name}","releases_url":"https://api.github.com/repos/ipfs/node-ipfs-api/releases{/id}","created_at":"2014-09-14T19:57:50Z","updated_at":"2015-08-21T06:53:28Z","pushed_at":"2015-08-21T17:12:14Z","git_url":"git://github.com/ipfs/node-ipfs-api.git","ssh_url":"git@github.com:ipfs/node-ipfs-api.git","clone_url":"https://github.com/ipfs/node-ipfs-api.git","svn_url":"https://github.com/ipfs/node-ipfs-api","homepage":"","size":890,"stargazers_count":20,"watchers_count":20,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":5,"forks":12,"open_issues":5,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ipfs/node-ipfs-api/pulls/49"},"html":{"href":"https://github.com/ipfs/node-ipfs-api/pull/49"},"issue":{"href":"https://api.github.com/repos/ipfs/node-ipfs-api/issues/49"},"comments":{"href":"https://api.github.com/repos/ipfs/node-ipfs-api/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/ipfs/node-ipfs-api/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/ipfs/node-ipfs-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ipfs/node-ipfs-api/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/ipfs/node-ipfs-api/statuses/950c5aa9d809c12aa097f2d5ec895790d96287b6"}}}}