Commit 210ecdb4 by Dane Springmeyer
parents b6936618 da0648e2
...@@ -31,10 +31,10 @@ describe('open/close', function() { ...@@ -31,10 +31,10 @@ describe('open/close', function() {
}); });
}); });
it('should be unable to open an inaccessible database', function(done) { it('should not be unable to open an inaccessible database', function(done) {
// NOTE: test assumes that the user is not allowed to create new files // NOTE: test assumes that the user is not allowed to create new files
// in /usr/bin. // in /usr/bin.
var db = new sqlite3.Database('/usr/bin/test.db', function(err) { var db = new sqlite3.Database('/test/tmp/directory-does-not-exist/test.db', function(err) {
if (err && err.errno === sqlite3.CANTOPEN) { if (err && err.errno === sqlite3.CANTOPEN) {
done(); done();
} else if (err) { } else if (err) {
......
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