{"action":"created","issue":{"url":"https://api.github.com/repos/Mockgoose/Mockgoose/issues/4","repository_url":"https://api.github.com/repos/Mockgoose/Mockgoose","labels_url":"https://api.github.com/repos/Mockgoose/Mockgoose/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Mockgoose/Mockgoose/issues/4/comments","events_url":"https://api.github.com/repos/Mockgoose/Mockgoose/issues/4/events","html_url":"https://github.com/Mockgoose/Mockgoose/issues/4","id":176150715,"number":4,"title":"uri.indexOf is not a function","user":{"login":"diegohaz","id":3068563,"avatar_url":"https://avatars.githubusercontent.com/u/3068563?v=3","gravatar_id":"","url":"https://api.github.com/users/diegohaz","html_url":"https://github.com/diegohaz","followers_url":"https://api.github.com/users/diegohaz/followers","following_url":"https://api.github.com/users/diegohaz/following{/other_user}","gists_url":"https://api.github.com/users/diegohaz/gists{/gist_id}","starred_url":"https://api.github.com/users/diegohaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegohaz/subscriptions","organizations_url":"https://api.github.com/users/diegohaz/orgs","repos_url":"https://api.github.com/users/diegohaz/repos","events_url":"https://api.github.com/users/diegohaz/events{/privacy}","received_events_url":"https://api.github.com/users/diegohaz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-10T02:34:09Z","updated_at":"2016-09-10T02:59:16Z","closed_at":null,"body":"I'm trying to use Mockgoose with [AVA](https://github.com/avajs/ava), but I'm getting this error when trying to test 2 or more files in parallel:\r\n\r\n```\r\nfailed with \"uri.indexOf is not a function\"\r\n      checkReplicaSetInUri (/Users/diegohaz/Projects/cblhub-test/node_modules/mongoose/lib/index.js:115:30)\r\n    Mongoose.connect (/Users/diegohaz/Projects/cblhub-test/node_modules/mongoose/lib/index.js:238:40)\r\n    Mongoose.mongoose.connect (/Users/diegohaz/Projects/cblhub-test/node_modules/mockgoose/Mockgoose.js:82:33)\r\n    _callee$ (auth.test.js:16:18)\r\n    tryCatch (/Users/diegohaz/Projects/cblhub-test/node_modules/regenerator-runtime/runtime.js:62:40)\r\n    GeneratorFunctionPrototype.invoke [as _invoke] (/Users/diegohaz/Projects/cblhub-test/node_modules/regenerator-runtime/runtime.js:336:22)\r\n    GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Users/diegohaz/Projects/cblhub-test/node_modules/regenerator-runtime/runtime.js:95:21)\r\n```"},"comment":{"url":"https://api.github.com/repos/Mockgoose/Mockgoose/issues/comments/246084357","html_url":"https://github.com/Mockgoose/Mockgoose/issues/4#issuecomment-246084357","issue_url":"https://api.github.com/repos/Mockgoose/Mockgoose/issues/4","id":246084357,"user":{"login":"diegohaz","id":3068563,"avatar_url":"https://avatars.githubusercontent.com/u/3068563?v=3","gravatar_id":"","url":"https://api.github.com/users/diegohaz","html_url":"https://github.com/diegohaz","followers_url":"https://api.github.com/users/diegohaz/followers","following_url":"https://api.github.com/users/diegohaz/following{/other_user}","gists_url":"https://api.github.com/users/diegohaz/gists{/gist_id}","starred_url":"https://api.github.com/users/diegohaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegohaz/subscriptions","organizations_url":"https://api.github.com/users/diegohaz/orgs","repos_url":"https://api.github.com/users/diegohaz/repos","events_url":"https://api.github.com/users/diegohaz/events{/privacy}","received_events_url":"https://api.github.com/users/diegohaz/received_events","type":"User","site_admin":false},"created_at":"2016-09-10T02:59:16Z","updated_at":"2016-09-10T02:59:16Z","body":"This bug was introduced in #2 on [Mockgoose.js#L144](https://github.com/Mockgoose/Mockgoose/blob/master/Mockgoose.js#L144).\r\n\r\nI didn't understand why `start_server_callback` was passed to `mongod.start_server`. An anonymous function should be enough to fix #1. \r\n\r\nIt's also confusing how `mongod.start_server` works. It appears to be asynchronous and in its [documentation](https://github.com/winfinit/mongodb-prebuilt#start_serveropts-callback) it says that the callback is executed both on success and failure, but it's only executed on failure with a number argument (which causes this bug `48.indexOf is not a function`)."}}
{"actor":{"display_login":"diegohaz"}}