Commit 288f4cfc by Brian Green

Fix interrupt test: wait for exec to complete before continuing.

parent dc076bfe
......@@ -13,7 +13,11 @@ describe('interrupt', function() {
for (var i = 0; i < 8; i += 1) {
setup += 'insert into t values (' + i + ');';
}
db.exec(setup);
db.exec(setup, function(err) {
if (err) {
return done(err);
}
var query = 'select last.n ' +
'from t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t as last';
......@@ -39,6 +43,7 @@ describe('interrupt', function() {
});
});
});
});
it('should throw if interrupt is called before open', function(done) {
var db = new sqlite3.Database(':memory:');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment