mccormicka / Mockgoose

Mocking for Mongoose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MongoDB 3.2.0 doesn't support in-memory-experiment storage engine

domachine opened this issue · comments

Hello,

seems that the storage engine inMemoryExperiment was removed from the current mongodb release and the inMemory storage engine moved to the enterprise edition. This shuts down the database before mockgoose can connect.

Any ideas how to solve this?

Regards

  Mockgoose dbpath: /Users/domachine/Desktop/apps/bitbucket.org/glsh/digigast-portal/node_modules/mockgoose/.mongooseTempDB +0ms


  Mockgoose attempting to start server on port: 27017 +253ms
  mongodb-prebuilt bin path: /Users/domachine/Desktop/apps/bitbucket.org/glsh/digigast-portal/node_modules/mongodb-prebuilt/dist/3.2.0/bin/ +1ms
  mongodb-prebuilt spawn +0ms /Users/domachine/Desktop/apps/bitbucket.org/glsh/digigast-portal/node_modules/mongodb-prebuilt/dist/3.2.0/bin/mongod --storageEngine inMemoryExperiment --port 27017 --dbpath /Users/domachine/Desktop/apps/bitbucket.org/glsh/digigast-portal/node_modules/mockgoose/.mongooseTempDB/27017
  mongodb 2016-01-21T13:16:28.758+0100 I CONTROL  [initandlisten] MongoDB starting : pid=58551 port=27017 dbpath=/Users/domachine/Desktop/apps/bitbucket.org/glsh/digigast-portal/node_modules/mockgoose/.mongooseTempDB/27017 64-bit host=think-maei.glsh.local +39ms
  mongodb 2016-01-21T13:16:28.759+0100 I CONTROL  [initandlisten] db version v3.2.0
2016-01-21T13:16:28.759+0100 I CONTROL  [initandlisten] git version: 45d947729a0315accb6d4f15a6b06be6d9c19fe7
2016-01-21T13:16:28.759+0100 I CONTROL  [initandlisten] allocator: system
2016-01-21T13:16:28.759+0100 I CONTROL  [initandlisten] modules: none
2016-01-21T13:16:28.759+0100 I CONTROL  [initandlisten] build environment:
2016-01-21T13:16:28.759+0100 I CONTROL  [initandlisten]     distarch: x86_64
2016-01-21T13:16:28.759+0100 I CONTROL  [initandlisten]     target_arch: x86_64
2016-01-21T13:16:28.759+0100 I CONTROL  [initandlisten] options: { net: { port: 27017 }, storage: { dbPath: "/Users/domachine/Desktop/apps/bitbucket.org/glsh/digigast-portal/node_modules/mockgoose/.mongooseTempDB/27017", engine: "inMemoryExperiment" } }
2016-01-21T13:16:28.760+0100 I STORAGE  [initandlisten] exception in initAndListen: 18656 Cannot start server with an unknown storage engine: inMemoryExperiment, terminating
2016-01-21T13:16:28.760+0100 I CONTROL  [initandlisten] dbexit:  rc: 100 +0ms
  mongodb-prebuilt child process exited with code 100 +5ms
  1) "before all" hook

  0 passing (2s)
  1 failing

  1)  "before all" hook:
     Error: timeout of 2000ms exceeded. Ensure the done() callback is being called in this test.




  mongodb Shutting down +2s

A possible solution might be, to use a temporary directory to store the database instead of using the in-memory storage engine.

If this is an accepted solution, I'm willing to go and prepare a PR.

Okay, I see that you already renamed the storage engine. Sorry. I'm using the npm version which seems not up-to-date.