{"action":"created","issue":{"url":"https://api.github.com/repos/DispatchMe/meteor-mocha-phantomjs/issues/17","repository_url":"https://api.github.com/repos/DispatchMe/meteor-mocha-phantomjs","labels_url":"https://api.github.com/repos/DispatchMe/meteor-mocha-phantomjs/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/DispatchMe/meteor-mocha-phantomjs/issues/17/comments","events_url":"https://api.github.com/repos/DispatchMe/meteor-mocha-phantomjs/issues/17/events","html_url":"https://github.com/DispatchMe/meteor-mocha-phantomjs/issues/17","id":158035315,"number":17,"title":"server.js Error: Meteor code must always run within a Fiber","user":{"login":"erabonza","id":7682008,"avatar_url":"https://avatars.githubusercontent.com/u/7682008?v=3","gravatar_id":"","url":"https://api.github.com/users/erabonza","html_url":"https://github.com/erabonza","followers_url":"https://api.github.com/users/erabonza/followers","following_url":"https://api.github.com/users/erabonza/following{/other_user}","gists_url":"https://api.github.com/users/erabonza/gists{/gist_id}","starred_url":"https://api.github.com/users/erabonza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erabonza/subscriptions","organizations_url":"https://api.github.com/users/erabonza/orgs","repos_url":"https://api.github.com/users/erabonza/repos","events_url":"https://api.github.com/users/erabonza/events{/privacy}","received_events_url":"https://api.github.com/users/erabonza/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-06-02T00:22:35Z","updated_at":"2016-07-08T02:49:43Z","closed_at":"2016-07-08T02:49:43Z","body":"Hi our tests is passing using practicalmeteor:mocha, but trying to run them on our CI (jenkins) its failing with errors when it finishes running the tests:\r\n\r\nMETEOR@1.3.2.4\r\n\r\ndispatch:mocha-core@0.0.2\r\ndispatch:mocha-phantomjs@0.1.2\r\ndispatch:phantomjs-tests@0.0.5\r\ndispatch:run-as-user@1.1.1\r\n\r\n ```\r\n=> Started your app.\r\n\r\n=> App running at: http://localhost:3000/\r\nI20160601-23:40:48.415(0)? \r\nI20160601-23:40:48.605(0)? \r\nI20160601-23:40:48.606(0)?   12 passing (5s)\r\nI20160601-23:40:48.607(0)? \r\nI20160601-23:40:48.608(0)? \r\nI20160601-23:40:48.608(0)? --------------------------------\r\nI20160601-23:40:48.609(0)? ----- RUNNING CLIENT TESTS -----\r\nI20160601-23:40:48.616(0)? --------------------------------\r\nI20160601-23:40:48.616(0)? \r\nI20160601-23:40:51.475(0)? \r\nI20160601-23:40:51.476(0)? \r\nI20160601-23:40:51.476(0)?   0 passing (1ms)\r\nI20160601-23:40:51.477(0)? \r\nI20160601-23:40:51.808(0)? All client and server tests finished!\r\nI20160601-23:40:51.808(0)? \r\nI20160601-23:40:51.812(0)? --------------------------------\r\nI20160601-23:40:51.813(0)? SERVER FAILURES: 0\r\nI20160601-23:40:51.814(0)? CLIENT FAILURES: 0\r\nI20160601-23:40:51.824(0)? --------------------------------\r\nW20160601-23:40:51.825(0)? (STDERR) \r\nW20160601-23:40:51.826(0)? (STDERR) /opt/tools/jenkins/workspace/Test-Job-Mocha/.tmp/meteor-test-run1uxurwr/.meteor/local/build/programs/server/packages/meteor.js:1060\r\nW20160601-23:40:51.826(0)? (STDERR)     throw new Error(\"Meteor code must always run within a Fiber. \" +\r\nW20160601-23:40:51.826(0)? (STDERR)           ^\r\nW20160601-23:40:51.837(0)? (STDERR) Error: Meteor code must always run within a Fiber. Try wrapping callbacks that you pass to non-Meteor libraries with Meteor.bindEnvironment.\r\nW20160601-23:40:51.837(0)? (STDERR)     at Object.Meteor._nodeCodeMustBeInFiber (packages/meteor/dynamics_nodejs.js:9:1)\r\nW20160601-23:40:51.838(0)? (STDERR)     at [object Object]._.extend.get (packages/meteor/dynamics_nodejs.js:21:1)\r\nW20160601-23:40:51.838(0)? (STDERR)     at Object.Meteor.isRestricted (packages/dispatch_run-as-user/packages/dispatch_run-as-user.js:137:1)\r\nW20160601-23:40:51.839(0)? (STDERR)     at [object Object].Mongo.Collection.(anonymous function) [as update] (packages/dispatch_run-as-user/packages/dispatch_run-as-user.js:268:1)\r\nW20160601-23:40:51.840(0)? (STDERR)     at Object.UserPresence.removeConnectionsByInstanceId (packages/konecty_user-presence/packages/konecty_user-presence.js:88:1)\r\nW20160601-23:40:51.840(0)? (STDERR)     at process.<anonymous> (packages/konecty_user-presence/packages/konecty_user-presence.js:223:1)\r\nW20160601-23:40:51.841(0)? (STDERR)     at process.emit (events.js:117:20)\r\nW20160601-23:40:51.841(0)? (STDERR)     at process.exit (node.js:750:17)\r\nW20160601-23:40:51.842(0)? (STDERR)     at exitIfDone (packages/dispatch:mocha-phantomjs/server.js:60:17)\r\nW20160601-23:40:51.842(0)? (STDERR)     at ChildProcess.done (packages/dispatch:mocha-phantomjs/server.js:89:7)\r\n ```\r\n"},"comment":{"url":"https://api.github.com/repos/DispatchMe/meteor-mocha-phantomjs/issues/comments/231263018","html_url":"https://github.com/DispatchMe/meteor-mocha-phantomjs/issues/17#issuecomment-231263018","issue_url":"https://api.github.com/repos/DispatchMe/meteor-mocha-phantomjs/issues/17","id":231263018,"user":{"login":"erabonza","id":7682008,"avatar_url":"https://avatars.githubusercontent.com/u/7682008?v=3","gravatar_id":"","url":"https://api.github.com/users/erabonza","html_url":"https://github.com/erabonza","followers_url":"https://api.github.com/users/erabonza/followers","following_url":"https://api.github.com/users/erabonza/following{/other_user}","gists_url":"https://api.github.com/users/erabonza/gists{/gist_id}","starred_url":"https://api.github.com/users/erabonza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erabonza/subscriptions","organizations_url":"https://api.github.com/users/erabonza/orgs","repos_url":"https://api.github.com/users/erabonza/repos","events_url":"https://api.github.com/users/erabonza/events{/privacy}","received_events_url":"https://api.github.com/users/erabonza/received_events","type":"User","site_admin":false},"created_at":"2016-07-08T02:49:43Z","updated_at":"2016-07-08T02:49:43Z","body":"No longer reproducible with the changes on the konecty:user-presence package."}}
{"actor":{"display_login":"erabonza"}}