{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/2974","labels_url":"https://api.github.com/repos/facebook/react-native/issues/2974/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/2974/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/2974/events","html_url":"https://github.com/facebook/react-native/issues/2974","id":107979848,"number":2974,"title":"[Tests] Yeoman tests are flaky (specifically generator-test and generator-android-test)","user":{"login":"ide","id":379606,"avatar_url":"https://avatars.githubusercontent.com/u/379606?v=3","gravatar_id":"","url":"https://api.github.com/users/ide","html_url":"https://github.com/ide","followers_url":"https://api.github.com/users/ide/followers","following_url":"https://api.github.com/users/ide/following{/other_user}","gists_url":"https://api.github.com/users/ide/gists{/gist_id}","starred_url":"https://api.github.com/users/ide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ide/subscriptions","organizations_url":"https://api.github.com/users/ide/orgs","repos_url":"https://api.github.com/users/ide/repos","events_url":"https://api.github.com/users/ide/events{/privacy}","received_events_url":"https://api.github.com/users/ide/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"foghina","id":412054,"avatar_url":"https://avatars.githubusercontent.com/u/412054?v=3","gravatar_id":"","url":"https://api.github.com/users/foghina","html_url":"https://github.com/foghina","followers_url":"https://api.github.com/users/foghina/followers","following_url":"https://api.github.com/users/foghina/following{/other_user}","gists_url":"https://api.github.com/users/foghina/gists{/gist_id}","starred_url":"https://api.github.com/users/foghina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foghina/subscriptions","organizations_url":"https://api.github.com/users/foghina/orgs","repos_url":"https://api.github.com/users/foghina/repos","events_url":"https://api.github.com/users/foghina/events{/privacy}","received_events_url":"https://api.github.com/users/foghina/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2015-09-23T18:33:53Z","updated_at":"2015-09-23T20:40:21Z","closed_at":null,"body":"These tests sometimes fail on Travis and on my local machine as well. My suspicion is that it has to do with how the tests are scheduled since the generator tests write to a temporary directory on disk, and the Yeoman APIs are global so maybe there isn't good isolation between tests (there is one `assert.file` function that somehow knows what the current temp dir is).\r\n\r\nPerhaps we should disable these tests for now, or run the local-cli tests separately from the JS tests and mark them as \"allowed to fail\" in Travis."},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/142721981","html_url":"https://github.com/facebook/react-native/issues/2974#issuecomment-142721981","issue_url":"https://api.github.com/repos/facebook/react-native/issues/2974","id":142721981,"user":{"login":"ide","id":379606,"avatar_url":"https://avatars.githubusercontent.com/u/379606?v=3","gravatar_id":"","url":"https://api.github.com/users/ide","html_url":"https://github.com/ide","followers_url":"https://api.github.com/users/ide/followers","following_url":"https://api.github.com/users/ide/following{/other_user}","gists_url":"https://api.github.com/users/ide/gists{/gist_id}","starred_url":"https://api.github.com/users/ide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ide/subscriptions","organizations_url":"https://api.github.com/users/ide/orgs","repos_url":"https://api.github.com/users/ide/repos","events_url":"https://api.github.com/users/ide/events{/privacy}","received_events_url":"https://api.github.com/users/ide/received_events","type":"User","site_admin":false},"created_at":"2015-09-23T20:40:21Z","updated_at":"2015-09-23T20:40:21Z","body":"> Maybe we're not using waitsFor correctly, still reading the code.\r\n\r\nI think `waitsFor` is fine and the timeout message is never printed. We probably don't need the `runAllTicks/Timers` calls though because auto-mocking is disabled."}}