From 7ef3c92b5130b0b8948045cdfc04e16d1ed808f8 Mon Sep 17 00:00:00 2001 From: Paul Fitzpatrick Date: Tue, 27 Dec 2022 12:56:51 -0500 Subject: [PATCH] (core) remove duplicate HostedStorageManager test from monorepo tests Summary: This test has been added to core. This diff also updates some storage-related code in monorepo to match changes in core. Test Plan: moving test Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D3746 --- test/server/lib/HostedStorageManager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/server/lib/HostedStorageManager.ts b/test/server/lib/HostedStorageManager.ts index fac3c131..5d1cf2d9 100644 --- a/test/server/lib/HostedStorageManager.ts +++ b/test/server/lib/HostedStorageManager.ts @@ -394,7 +394,7 @@ describe('HostedStorageManager', function() { function requireStorage(storage: T|undefined): T { if (storage === undefined) { throw new Error('storage not found'); } return storage; - }; + } switch (storage) { case 'cached': { // Make an in-memory store that is slow and aggressively cached. @@ -898,7 +898,7 @@ describe('HostedStorageManager', function() { const doc = await store.docManager.fetchDoc(docSession, docId); await doc.waitForInitialization(); const rec = await doc.fetchTable(makeExceptionalDocSession('system'), '_grist_DocInfo'); - const tz = rec[3].timezone[0]; + const tz = rec.tableData[3].timezone[0]; const h = (await doc.getRecentStates(makeExceptionalDocSession('system')))[0].h; await store.docManager.makeBackup(doc, 'hello'); await store.end();