Blame view

node_modules/mongojs/test/crash.js 224 Bytes
46de8790   Tarpit Grover   first commit
1
2
3
4
5
6
7
8
9
10
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);