Skip to content

Instantly share code, notes, and snippets.

@peterzawistowicz
Created April 17, 2015 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterzawistowicz/92593e2ee273d6ad96f8 to your computer and use it in GitHub Desktop.
Save peterzawistowicz/92593e2ee273d6ad96f8 to your computer and use it in GitHub Desktop.
function connectDB(callback) {
mongoClient.connect(dbConfig.testDBURL, function(err, db) {
assert.equal(null, err);
reader_test_db = db;
console.log("Connected correctly to server");
callback(0);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment