You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
224 B
10 lines
224 B
var mongojs = require('../index');
|
|
var db = mongojs('localhost', ['test']);
|
|
|
|
db.test.findOne(function() {
|
|
throw new Error('I should crash the program');
|
|
});
|
|
|
|
setTimeout(function() {
|
|
throw new Error('timeout');
|
|
}, 5000);
|
|
|