mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
storage - add a test to assert that invalid path does not hang (#152441)
This commit is contained in:
@@ -773,4 +773,18 @@ flakySuite('SQLite Storage Library', function () {
|
||||
|
||||
await storage.close();
|
||||
});
|
||||
|
||||
test('invalid path does not hang', async () => {
|
||||
const storage = new SQLiteStorageDatabase(join(testdir, 'nonexist', 'storage.db'));
|
||||
|
||||
let error;
|
||||
try {
|
||||
await storage.getItems();
|
||||
await storage.close();
|
||||
} catch (e) {
|
||||
error = e;
|
||||
}
|
||||
|
||||
ok(error);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user