{"action":"created","comment":{"url":"https://api.github.com/repos/Financial-Times/next-engels/pulls/comments/25428908","id":25428908,"diff_hunk":"@@ -6,6 +6,36 @@ var https = require('https');\n \n module.exports = {\n \n+\tbefore: function(browser, done){\n+\t\tvar request = require('request');\n+\n+\t\tconsole.log(\"Checking heroku app readiness...\");\n+\t\tvar i = 0;\n+\t\tgetReadyOrNot();\n+\n+\t\tfunction getReadyOrNot(){\n+\t\t\ti++;\n+\t\t\trequest(browser.launch_url + '__gtg', function (error, response, body) {\n+\t\t\t\tif (!error && response.statusCode === 200) {\n+\t\t\t\t\tconsole.log(\"Response from \" + browser.launch_url + \"__gtg : \" + response.statusCode);\n+\t\t\t\t\tconsole.log(\"Page is ready for testing\");\n+\t\t\t\t\tdone();\n+\t\t\t\t}else if(i >= 12){","path":"tests/browser/tests/jssuccesstest.js","position":18,"original_position":18,"commit_id":"f0beb3f22e9664722bf794793fb00d81e44a5a5d","original_commit_id":"f0beb3f22e9664722bf794793fb00d81e44a5a5d","user":{"login":"matthew-andrews","id":825088,"avatar_url":"https://avatars.githubusercontent.com/u/825088?v=3","gravatar_id":"","url":"https://api.github.com/users/matthew-andrews","html_url":"https://github.com/matthew-andrews","followers_url":"https://api.github.com/users/matthew-andrews/followers","following_url":"https://api.github.com/users/matthew-andrews/following{/other_user}","gists_url":"https://api.github.com/users/matthew-andrews/gists{/gist_id}","starred_url":"https://api.github.com/users/matthew-andrews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthew-andrews/subscriptions","organizations_url":"https://api.github.com/users/matthew-andrews/orgs","repos_url":"https://api.github.com/users/matthew-andrews/repos","events_url":"https://api.github.com/users/matthew-andrews/events{/privacy}","received_events_url":"https://api.github.com/users/matthew-andrews/received_events","type":"User","site_admin":false},"body":"does `before` itself not have a timeout?","created_at":"2015-02-26T14:16:21Z","updated_at":"2015-02-26T14:16:21Z","html_url":"https://github.com/Financial-Times/next-engels/pull/177#discussion_r25428908","pull_request_url":"https://api.github.com/repos/Financial-Times/next-engels/pulls/177","_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/next-engels/pulls/comments/25428908"},"html":{"href":"https://github.com/Financial-Times/next-engels/pull/177#discussion_r25428908"},"pull_request":{"href":"https://api.github.com/repos/Financial-Times/next-engels/pulls/177"}}},"pull_request":{"url":"https://api.github.com/repos/Financial-Times/next-engels/pulls/177","id":30079770,"html_url":"https://github.com/Financial-Times/next-engels/pull/177","diff_url":"https://github.com/Financial-Times/next-engels/pull/177.diff","patch_url":"https://github.com/Financial-Times/next-engels/pull/177.patch","issue_url":"https://api.github.com/repos/Financial-Times/next-engels/issues/177","number":177,"state":"open","locked":false,"title":"Adding before: command, giving heroku 60 seconds to load...","user":{"login":"spriggsha","id":7458891,"avatar_url":"https://avatars.githubusercontent.com/u/7458891?v=3","gravatar_id":"","url":"https://api.github.com/users/spriggsha","html_url":"https://github.com/spriggsha","followers_url":"https://api.github.com/users/spriggsha/followers","following_url":"https://api.github.com/users/spriggsha/following{/other_user}","gists_url":"https://api.github.com/users/spriggsha/gists{/gist_id}","starred_url":"https://api.github.com/users/spriggsha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spriggsha/subscriptions","organizations_url":"https://api.github.com/users/spriggsha/orgs","repos_url":"https://api.github.com/users/spriggsha/repos","events_url":"https://api.github.com/users/spriggsha/events{/privacy}","received_events_url":"https://api.github.com/users/spriggsha/received_events","type":"User","site_admin":false},"body":"...prior to the nightwatch tests kicking off.","created_at":"2015-02-26T14:04:55Z","updated_at":"2015-02-26T14:16:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c3ab2775c1752e73e6aa21d575a07b7cc991652c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Financial-Times/next-engels/pulls/177/commits","review_comments_url":"https://api.github.com/repos/Financial-Times/next-engels/pulls/177/comments","review_comment_url":"https://api.github.com/repos/Financial-Times/next-engels/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Financial-Times/next-engels/issues/177/comments","statuses_url":"https://api.github.com/repos/Financial-Times/next-engels/statuses/f0beb3f22e9664722bf794793fb00d81e44a5a5d","head":{"label":"Financial-Times:nw-wait","ref":"nw-wait","sha":"f0beb3f22e9664722bf794793fb00d81e44a5a5d","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":24844805,"name":"next-engels","full_name":"Financial-Times/next-engels","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/next-engels","description":"Home","fork":false,"url":"https://api.github.com/repos/Financial-Times/next-engels","forks_url":"https://api.github.com/repos/Financial-Times/next-engels/forks","keys_url":"https://api.github.com/repos/Financial-Times/next-engels/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/next-engels/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/next-engels/teams","hooks_url":"https://api.github.com/repos/Financial-Times/next-engels/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/next-engels/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/next-engels/events","assignees_url":"https://api.github.com/repos/Financial-Times/next-engels/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/next-engels/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/next-engels/tags","blobs_url":"https://api.github.com/repos/Financial-Times/next-engels/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/next-engels/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/next-engels/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/next-engels/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/next-engels/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/next-engels/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/next-engels/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/next-engels/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/next-engels/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/next-engels/subscription","commits_url":"https://api.github.com/repos/Financial-Times/next-engels/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/next-engels/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/next-engels/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/next-engels/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/next-engels/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/next-engels/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/next-engels/merges","archive_url":"https://api.github.com/repos/Financial-Times/next-engels/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/next-engels/downloads","issues_url":"https://api.github.com/repos/Financial-Times/next-engels/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/next-engels/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/next-engels/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/next-engels/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/next-engels/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/next-engels/releases{/id}","created_at":"2014-10-06T12:27:36Z","updated_at":"2015-02-25T12:18:58Z","pushed_at":"2015-02-26T13:58:32Z","git_url":"git://github.com/Financial-Times/next-engels.git","ssh_url":"git@github.com:Financial-Times/next-engels.git","clone_url":"https://github.com/Financial-Times/next-engels.git","svn_url":"https://github.com/Financial-Times/next-engels","homepage":"","size":5964,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"Financial-Times:master","ref":"master","sha":"61f7b9c6e3c217d2e9515e113a8c5f4ad50b8530","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":24844805,"name":"next-engels","full_name":"Financial-Times/next-engels","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/next-engels","description":"Home","fork":false,"url":"https://api.github.com/repos/Financial-Times/next-engels","forks_url":"https://api.github.com/repos/Financial-Times/next-engels/forks","keys_url":"https://api.github.com/repos/Financial-Times/next-engels/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/next-engels/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/next-engels/teams","hooks_url":"https://api.github.com/repos/Financial-Times/next-engels/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/next-engels/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/next-engels/events","assignees_url":"https://api.github.com/repos/Financial-Times/next-engels/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/next-engels/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/next-engels/tags","blobs_url":"https://api.github.com/repos/Financial-Times/next-engels/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/next-engels/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/next-engels/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/next-engels/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/next-engels/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/next-engels/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/next-engels/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/next-engels/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/next-engels/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/next-engels/subscription","commits_url":"https://api.github.com/repos/Financial-Times/next-engels/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/next-engels/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/next-engels/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/next-engels/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/next-engels/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/next-engels/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/next-engels/merges","archive_url":"https://api.github.com/repos/Financial-Times/next-engels/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/next-engels/downloads","issues_url":"https://api.github.com/repos/Financial-Times/next-engels/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/next-engels/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/next-engels/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/next-engels/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/next-engels/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/next-engels/releases{/id}","created_at":"2014-10-06T12:27:36Z","updated_at":"2015-02-25T12:18:58Z","pushed_at":"2015-02-26T13:58:32Z","git_url":"git://github.com/Financial-Times/next-engels.git","ssh_url":"git@github.com:Financial-Times/next-engels.git","clone_url":"https://github.com/Financial-Times/next-engels.git","svn_url":"https://github.com/Financial-Times/next-engels","homepage":"","size":5964,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/next-engels/pulls/177"},"html":{"href":"https://github.com/Financial-Times/next-engels/pull/177"},"issue":{"href":"https://api.github.com/repos/Financial-Times/next-engels/issues/177"},"comments":{"href":"https://api.github.com/repos/Financial-Times/next-engels/issues/177/comments"},"review_comments":{"href":"https://api.github.com/repos/Financial-Times/next-engels/pulls/177/comments"},"review_comment":{"href":"https://api.github.com/repos/Financial-Times/next-engels/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Financial-Times/next-engels/pulls/177/commits"},"statuses":{"href":"https://api.github.com/repos/Financial-Times/next-engels/statuses/f0beb3f22e9664722bf794793fb00d81e44a5a5d"}}}}