mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(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
This commit is contained in:
parent
9451fb9597
commit
7ef3c92b51
@ -394,7 +394,7 @@ describe('HostedStorageManager', function() {
|
|||||||
function requireStorage<T>(storage: T|undefined): T {
|
function requireStorage<T>(storage: T|undefined): T {
|
||||||
if (storage === undefined) { throw new Error('storage not found'); }
|
if (storage === undefined) { throw new Error('storage not found'); }
|
||||||
return storage;
|
return storage;
|
||||||
};
|
}
|
||||||
switch (storage) {
|
switch (storage) {
|
||||||
case 'cached': {
|
case 'cached': {
|
||||||
// Make an in-memory store that is slow and aggressively 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);
|
const doc = await store.docManager.fetchDoc(docSession, docId);
|
||||||
await doc.waitForInitialization();
|
await doc.waitForInitialization();
|
||||||
const rec = await doc.fetchTable(makeExceptionalDocSession('system'), '_grist_DocInfo');
|
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;
|
const h = (await doc.getRecentStates(makeExceptionalDocSession('system')))[0].h;
|
||||||
await store.docManager.makeBackup(doc, 'hello');
|
await store.docManager.makeBackup(doc, 'hello');
|
||||||
await store.end();
|
await store.end();
|
||||||
|
Loading…
Reference in New Issue
Block a user