{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/4206","repository_url":"https://api.github.com/repos/Automattic/wp-calypso","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/4206/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/4206/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/4206/events","html_url":"https://github.com/Automattic/wp-calypso/issues/4206","id":142599155,"number":4206,"title":"Testing: Find solution for double callback warning","user":{"login":"gziolo","id":699132,"avatar_url":"https://avatars.githubusercontent.com/u/699132?v=3","gravatar_id":"","url":"https://api.github.com/users/gziolo","html_url":"https://github.com/gziolo","followers_url":"https://api.github.com/users/gziolo/followers","following_url":"https://api.github.com/users/gziolo/following{/other_user}","gists_url":"https://api.github.com/users/gziolo/gists{/gist_id}","starred_url":"https://api.github.com/users/gziolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gziolo/subscriptions","organizations_url":"https://api.github.com/users/gziolo/orgs","repos_url":"https://api.github.com/users/gziolo/repos","events_url":"https://api.github.com/users/gziolo/events{/privacy}","received_events_url":"https://api.github.com/users/gziolo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Framework","name":"Framework","color":"006b75"},{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Testing","name":"Testing","color":"006b75"},{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Type]%20Janitorial","name":"[Type] Janitorial","color":"fad8c7"}],"state":"closed","locked":false,"assignee":{"login":"gziolo","id":699132,"avatar_url":"https://avatars.githubusercontent.com/u/699132?v=3","gravatar_id":"","url":"https://api.github.com/users/gziolo","html_url":"https://github.com/gziolo","followers_url":"https://api.github.com/users/gziolo/followers","following_url":"https://api.github.com/users/gziolo/following{/other_user}","gists_url":"https://api.github.com/users/gziolo/gists{/gist_id}","starred_url":"https://api.github.com/users/gziolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gziolo/subscriptions","organizations_url":"https://api.github.com/users/gziolo/orgs","repos_url":"https://api.github.com/users/gziolo/repos","events_url":"https://api.github.com/users/gziolo/events{/privacy}","received_events_url":"https://api.github.com/users/gziolo/received_events","type":"User","site_admin":false},"assignees":[{"login":"gziolo","id":699132,"avatar_url":"https://avatars.githubusercontent.com/u/699132?v=3","gravatar_id":"","url":"https://api.github.com/users/gziolo","html_url":"https://github.com/gziolo","followers_url":"https://api.github.com/users/gziolo/followers","following_url":"https://api.github.com/users/gziolo/following{/other_user}","gists_url":"https://api.github.com/users/gziolo/gists{/gist_id}","starred_url":"https://api.github.com/users/gziolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gziolo/subscriptions","organizations_url":"https://api.github.com/users/gziolo/orgs","repos_url":"https://api.github.com/users/gziolo/repos","events_url":"https://api.github.com/users/gziolo/events{/privacy}","received_events_url":"https://api.github.com/users/gziolo/received_events","type":"User","site_admin":false},{"login":"samouri","id":4656974,"avatar_url":"https://avatars.githubusercontent.com/u/4656974?v=3","gravatar_id":"","url":"https://api.github.com/users/samouri","html_url":"https://github.com/samouri","followers_url":"https://api.github.com/users/samouri/followers","following_url":"https://api.github.com/users/samouri/following{/other_user}","gists_url":"https://api.github.com/users/samouri/gists{/gist_id}","starred_url":"https://api.github.com/users/samouri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samouri/subscriptions","organizations_url":"https://api.github.com/users/samouri/orgs","repos_url":"https://api.github.com/users/samouri/repos","events_url":"https://api.github.com/users/samouri/events{/privacy}","received_events_url":"https://api.github.com/users/samouri/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/64","html_url":"https://github.com/Automattic/wp-calypso/milestones/Framework:%20Single%20test%20runner","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/64/labels","id":1632454,"number":64,"title":"Framework: Single test runner","description":"","creator":{"login":"gziolo","id":699132,"avatar_url":"https://avatars.githubusercontent.com/u/699132?v=3","gravatar_id":"","url":"https://api.github.com/users/gziolo","html_url":"https://github.com/gziolo","followers_url":"https://api.github.com/users/gziolo/followers","following_url":"https://api.github.com/users/gziolo/following{/other_user}","gists_url":"https://api.github.com/users/gziolo/gists{/gist_id}","starred_url":"https://api.github.com/users/gziolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gziolo/subscriptions","organizations_url":"https://api.github.com/users/gziolo/orgs","repos_url":"https://api.github.com/users/gziolo/repos","events_url":"https://api.github.com/users/gziolo/events{/privacy}","received_events_url":"https://api.github.com/users/gziolo/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":92,"state":"open","created_at":"2016-03-09T09:01:14Z","updated_at":"2016-09-26T10:36:40Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2016-03-22T09:57:47Z","updated_at":"2016-09-26T12:32:07Z","closed_at":"2016-09-26T10:18:35Z","body":"Part of #4915.\r\n\r\nWhen you use dot reporter:` npm run test-client -- --reporter=dot` you can see this message 3 times:\r\n\r\n> double callback!\r\n\r\nSome comments about this issue can be found in #4121.\r\n\r\n@umurkontaci:\r\n> this is caused by superagent and when the request callback is called more than once. I do not know why it is happening but one instance I've found this happening is before hook on posts/actions.\r\n\r\n@gwwar:\r\n> I need to narrow this down further, but the `double callback` warnings are coming from `lib/posts/test/actions`, `lib/posts/test/post-list-store` and `post-editor/test/post-editor`\r\n\r\n> Most of these come from the test setup. Not sure of the reason, but `SitesList = require( 'lib/sites-list/list' );` triggers this in `post-editor/test/post-editor`, while `PostEditStore = require( '../post-edit-store' );` triggers this in `lib/posts/test/actions`"},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/249556675","html_url":"https://github.com/Automattic/wp-calypso/issues/4206#issuecomment-249556675","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/4206","id":249556675,"user":{"login":"aduth","id":1779930,"avatar_url":"https://avatars.githubusercontent.com/u/1779930?v=3","gravatar_id":"","url":"https://api.github.com/users/aduth","html_url":"https://github.com/aduth","followers_url":"https://api.github.com/users/aduth/followers","following_url":"https://api.github.com/users/aduth/following{/other_user}","gists_url":"https://api.github.com/users/aduth/gists{/gist_id}","starred_url":"https://api.github.com/users/aduth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aduth/subscriptions","organizations_url":"https://api.github.com/users/aduth/orgs","repos_url":"https://api.github.com/users/aduth/repos","events_url":"https://api.github.com/users/aduth/events{/privacy}","received_events_url":"https://api.github.com/users/aduth/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T12:32:07Z","updated_at":"2016-09-26T12:32:07Z","body":"@gziolo Not sure if you had meant for #8168 to close this, as the autoclose was triggered by the text \"Partially fixes\".\r\n\r\nAnother question though: How can we document this issue so that developers don't fall into the same traps? I'm still not entirely clear from the issues and PRs what causes the problem. Would it help to mock some of these methods from the base test runner?"}}
{"actor":{"display_login":"aduth"}}