Skip to content

Can't run jasmine (MongoError: failed to connect to server) #3770

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
felipeandradebezerra opened this issue May 2, 2017 · 2 comments
Closed

Comments

@felipeandradebezerra
Copy link
Contributor

Hi guys, I can't run jasmine or npm test. Is there any step required to setup the environment (ex: parseServerMongoAdapterTestDatabase)?

Parse-server version running on master
Operating System: macOS Sierra
MongoDB version: 3.6.0

$ node_modules/jasmine/bin/jasmine.js spec/PushController.spec.js
Spec started
(node:89046) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): MongoError: failed to connect to server [localhost:27017] on first connect [MongoError: connect ECONNREFUSED ::1:27017]

@flovilmart
Copy link
Contributor

Just running npm test work. Did you npm install with all devDependencies?

@felipeandradebezerra
Copy link
Contributor Author

felipeandradebezerra commented May 2, 2017

Thanks @flovilmart !

npm install --dev

Can you take a look at this pull request?

I got the following failures:

  1. Parse.Push should allow master key to query _PushStatus
  • Expected '{"deviceType":"ios","deviceToken":{"$exists":true}}' to equal '{"deviceType":"ios"}'.
  1. Postgres database init options should create server with public schema databaseOptions
  • Failed: connect ECONNREFUSED 127.0.0.1:5432
  • Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
  1. Postgres database init options should fail to create server if schema databaseOptions does not exist
  • Expected 'ECONNREFUSED' to equal '42P01'.
  1. PushController properly creates _PushStatus
  • Expected '{"deviceToken":{"$exists":true}}' to equal '{}'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants