Skip to content
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

Window does not respond after start #162

Open
applesin opened this issue Mar 29, 2017 · 0 comments
Open

Window does not respond after start #162

applesin opened this issue Mar 29, 2017 · 0 comments

Comments

@applesin
Copy link

After npm start:

_2017-03-29_16-18-48

When run test:
eugene@eugene-everywhere ~/mongotron-master> make test

--------------------------------------------
RUNNING INTEGRATION TEST SETUP...
--------------------------------------------

ENVIRONMENT
------------------
{ version: '1.0.0-alpha.5',
  name: 'Mongotron',
  website: 'http://mongotron.io/',
  repository: 'https://github.com/mongotron',
  repositoryName: 'mongotron',
  repositoryOwner: 'officert',
  logLevel: 'debug',
  buildPath: 'build',
  releasePath: 'release',
  appConfigDir: 'tests/config',
  logFilePath: 'tests/config/logs.json',
  dbConfigPath: 'tests/config/dbConnections.json',
  keybindingsPath: 'tests/config/keybindings.json',
  themesPath: 'tests/config/themes.json',
  env: 'test' }


warn:  Error: ENOENT: no such file or directory, lstat 'tests/config'
    at Object.fs.lstatSync (fs.js:948:18)
    at FileUtils.createDirSync (/home/eugene/mongotron-master/src/lib/utils/fileUtils.js:15:22)
    at createAppConfigDir (/home/eugene/mongotron-master/src/mongotron.js:23:13)
    at Mongotron.init (/home/eugene/mongotron-master/src/mongotron.js:14:5)
    at Context.next (/home/eugene/mongotron-master/tests/integration/before-all.js:6:28)
    at callFnAsync (/home/eugene/mongotron-master/node_modules/mocha/lib/runnable.js:338:8)
    at Hook.Runnable.run (/home/eugene/mongotron-master/node_modules/mocha/lib/runnable.js:290:7)
    at next (/home/eugene/mongotron-master/node_modules/mocha/lib/runner.js:298:10)
    at Immediate.<anonymous> (/home/eugene/mongotron-master/node_modules/mocha/lib/runner.js:320:5)
    at runCallback (timers.js:651:20)
    at tryOnImmediate (timers.js:624:5)
    at processImmediate [as _immediateCallback] (timers.js:596:5)

--------------------------------------------
FINISHED RUNNING TEST SETUP
--------------------------------------------
  entities
    connection
      connect
        when host is localhost
          but port is invalid
info: Connecting to Local Connection server @ mongodb://localhost:10000...
err { Abstract Error: connect ECONNREFUSED 127.0.0.1:10000
    at ConnectionError.AbstractError (/home/eugene/mongotron-master/src/lib/errors/abstractError.js:9:11)
    at ConnectionError (/home/eugene/mongotron-master/src/lib/errors/connectionError.js:8:5)
    at client.connect (/home/eugene/mongotron-master/src/lib/entities/connection.js:78:32)
    at /home/eugene/mongotron-master/node_modules/mongodb/lib/mongo_client.js:276:20
    at /home/eugene/mongotron-master/node_modules/mongodb/lib/db.js:224:14
    at Server.<anonymous> (/home/eugene/mongotron-master/node_modules/mongodb/lib/server.js:234:9)
    at Object.onceWrapper (events.js:291:19)
    at emitTwo (events.js:106:13)
    at Server.emit (events.js:192:7)
    at Pool.<anonymous> (/home/eugene/mongotron-master/node_modules/mongodb-core/lib/topologies/server.js:269:68)
    at Object.onceWrapper (events.js:291:19)
    at emitTwo (events.js:106:13)
    at Pool.emit (events.js:192:7)
    at Connection.<anonymous> (/home/eugene/mongotron-master/node_modules/mongodb-core/lib/connection/pool.js:81:12)
    at Object.onceWrapper (events.js:291:19)
    at emitTwo (events.js:106:13)
    at Connection.emit (events.js:192:7)
    at Socket.<anonymous> (/home/eugene/mongotron-master/node_modules/mongodb-core/lib/connection/connection.js:124:49)
    at Object.onceWrapper (events.js:291:19)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:189:7)
    at emitErrorNT (net.js:1280:8)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9) name: 'Connection Error' }
            ✓ should return a Connection Error
          and port is valid
info: Connecting to Local Connection server @ mongodb://localhost:27017...
Unhandled rejection Abstract Error: connect ECONNREFUSED 127.0.0.1:27017
    at ConnectionError.AbstractError (/home/eugene/mongotron-master/src/lib/errors/abstractError.js:9:11)
    at ConnectionError (/home/eugene/mongotron-master/src/lib/errors/connectionError.js:8:5)
    at client.connect (/home/eugene/mongotron-master/src/lib/entities/connection.js:78:32)
    at /home/eugene/mongotron-master/node_modules/mongodb/lib/mongo_client.js:276:20
    at /home/eugene/mongotron-master/node_modules/mongodb/lib/db.js:224:14
    at Server.<anonymous> (/home/eugene/mongotron-master/node_modules/mongodb/lib/server.js:234:9)
    at Object.onceWrapper (events.js:291:19)
    at emitTwo (events.js:106:13)
    at Server.emit (events.js:192:7)
    at Pool.<anonymous> (/home/eugene/mongotron-master/node_modules/mongodb-core/lib/topologies/server.js:269:68)
    at Object.onceWrapper (events.js:291:19)
    at emitTwo (events.js:106:13)
    at Pool.emit (events.js:192:7)
    at Connection.<anonymous> (/home/eugene/mongotron-master/node_modules/mongodb-core/lib/connection/pool.js:81:12)
    at Object.onceWrapper (events.js:291:19)
    at emitTwo (events.js:106:13)
    at Connection.emit (events.js:192:7)
    at Socket.<anonymous> (/home/eugene/mongotron-master/node_modules/mongodb-core/lib/connection/connection.js:124:49)
    at Object.onceWrapper (events.js:291:19)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:189:7)
    at emitErrorNT (net.js:1280:8)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

            1) should add databases to collection.databases array

  entities
    database
      addConnection
        when no options are passed
          ✓ should reject with an error
        when options.name is not passed
          ✓ should reject with an error
        when database is not yet connected
          ✓ should reject with an error

  modules
    connection
      create
        when no name is passed
          ✓ should return an error
        when no host is passed
          ✓ should return an error
        when no port is passed
          ✓ should return an error
        when invalid port is passed
          ✓ should return an error
        when replica set is passed with no name
          ✓ should return an error
        when replica set is passed with no servers
          ✓ should return an error
        when replica set is passed with empty servers
          ✓ should return an error
        when replica set set is passed with no host
          ✓ should return an error
        when replica set set is passed with no port
          ✓ should return an error
        when replica set set is passed with invalid port
          ✓ should return an error
        when host is not localhost and no databaseName is passed
          ✓ should return an error
        when auth is passed but no username is passed
          ✓ should return an error
        when auth is passed but no password is passed
          ✓ should return an error
        when all required data is passed
          and has authentication and is localhost
            ✓ should save and return the new connection and ignore the auth
          and has authentication and is not localhost
            ✓ should save and return the new connection and save the auth
          and host is localhost
            ✓ should save and return the new connection
          and host is not localhost
            ✓ should save and return the new connection
          and is a replica set
            ✓ should save and return the new connection

  modules
    connection
      update
        when no id is passed
          ✓ should return an error
        when no updates are passed
          ✓ should return an error
        when connection does not exist for id
          ✓ should return an error
        when auth.username is updated but no password is passed and existing connection has no password
          ✓ should return an error
        when auth.password is updated but no username is passed and existing connection has no username
          ✓ should return an error
        when host is changed to non localhost but no databaseName is passed
warn: connection service - _applyConnectionUpdates() - connection has no database
          ✓ should return an error
        when port is changed to an invalid port
          ✓ should return an error
        when replicaSet is passed with no name and existing connection has no replica set
          ✓ should return an error
        when replicaSet is passed with server with no host
          ✓ should return an error
        when replicaSet is passed with server with no port
          ✓ should return an error
        when replicaSet is updated but no name is passed and existing connection has no replicaSet
          ✓ should return an error
        when all required data is passed
          when name is updated
            ✓ should update the name and return the connection
          when host is updated to local host
            ✓ should update the host and return the connection
          when host is updated to remote host
warn: connection service - _applyConnectionUpdates() - connection has no database
            ✓ should update the host and return the connection
          when port is updated and host is local host
            ✓ should update the port and return the connection
          when port is updated and host is remote host
            ✓ should update the port and return the connection
          when databaseName is updated
            ✓ should update the database name and return the connection
          when auth.username is updated but no password is passed and existing connection has a password
            ✓ should update the auth.username and return the connection
          when auth.password is updated but no username is passed and existing connection has a username
            ✓ should update the auth.password and return the connection
          when auth is removed
            ✓ should remove the database auth and return the connection
          when replicaSet is updated and existing connection has no replicaSet
            ✓ should add the replicaSet to the connection and return the connection
          when replicaSet.name is updated and existing connection already has a replicaSet
            ✓ should update the replicaSet.name return the connection
          when replicaSet.servers is updated and existing connection already has a replicaSet
            ✓ should update the replicaSet.servers return the connection
          when replicaSet is removed
            ✓ should remove the replicaSet return the connection
          when host is updated and existing connection has a replicaSet
            ✓ should update the host, remove the replicaSet and return the connection


  47 passing (2s)
  1 failing

  1) entities connection connect when host is localhost and port is valid should add databases to collection.databases array:
     Error: timeout of 2000ms exceeded. Ensure the done() callback is being called in this test.
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

1 participant