Getting Mongo::Error::SessionNotMaterialized when trying to run tests on this repo #5446
-
So I clone
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
@jeffsaremi, server sessions are only available in replica sets or sharded clusters. If you're testing locally you could spin up a single node replica set (ex: I tried just starting a |
Beta Was this translation helpful? Give feedback.
-
The Just to rule that out can you run the following and try one more time:
|
Beta Was this translation helpful? Give feedback.
@jeffsaremi, server sessions are only available in replica sets or sharded clusters. If you're testing locally you could spin up a single node replica set (ex:
mongod --dbpath data --replSet rs0
), connect to it via themongosh
shell and runrs.initate()
to initialize the set then run the tests ... but this shouldn't be necessary.I tried just starting a
mongod
in standalone mode and running the full suite withrake
and didn't get any errors. Can you share the exact commands you ran to get this output? I'm not sure whattest.rb
refers to in this case.