benweissmann / memongo Goto Github PK
View Code? Open in Web Editor NEWEasily run an in-memory MongoDB server for your Go unit tests
License: MIT License
Easily run an in-memory MongoDB server for your Go unit tests
License: MIT License
When building docker I am getting an error when executing the tests. The package pulls down the mongo binary and stores it in a local folder in the project but when running the tests I get this folderName/mongo.tgz/mongod: no such file or directory.
// Code that sets up the memongo server. The dir is a folder in the project its self. This code is ran for each test as in each test is independent and calls the memongo.startWithOptions(...). Without docker all tests run and pass no errors ad the memongo package works fine. When building the docker image it fails.
mongoServer, err := memongo.StartWithOptions(&memongo.Options{
CachePath: dir,
MongoVersion: "4.0.5",
})
How do I install this package? There is not install instructions.
The message to indicate port number comes as:
{"t":{"$date":"2021-04-20T17:28:20.364-07:00"},"s":"I", "c":"NETWORK", "id":23016, "ctx":"listener","msg":"Waiting for connections","attr":{"port":59432,"ssl":"off"}}
This causes memongo to not detect that it is up.
I'm trying to use memongo for application testing on Apple M1 chipset. On running the test, it throws the following error:
panic: memongo does not support automatic downloading on your system: your architecture, arm64, is not supported
anuj ~> go version
go version go1.17.5 darwin/arm64
Hello to all contributors,
after multiple documented tries to contact @benweissmann through email, linkedin and here on Github,
I assumed with reasonable confidence that this project is abandoned
To solve this problem, me and @tryvium-travels team decided to fork and maintain a new version of this very project.
You can check it at https://github.com/tryvium-travels/memongo
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.