fix(rustdb-storage): return empty collection list for missing databases

This commit is contained in:
2026-05-28 09:18:48 +00:00
parent 03fabaa26b
commit fd2c3ed63d
6 changed files with 1168 additions and 1940 deletions
+6
View File
@@ -50,6 +50,12 @@ tap.test('localsmartdb: should connect via returned connectionUri', async () =>
expect(db).toBeTruthy();
});
tap.test('localsmartdb: listCollections should be empty for missing database', async () => {
const missingDb = client.db('missingdb');
const collections = await missingDb.collections();
expect(collections).toEqual([]);
});
tap.test('localsmartdb: should reject double start', async () => {
let threw = false;
try {