Commit da0648e2 by Dane Springmeyer

try to open a db in a directory that does not exist instead of /usr/bin - refs #53

parent 96e03d4f
......@@ -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
// 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) {
done();
} 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