mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) updates from grist-core
This commit is contained in:
@@ -16,7 +16,6 @@ import {
|
||||
HostedStorageOptions
|
||||
} from 'app/server/lib/HostedStorageManager';
|
||||
import log from 'app/server/lib/log';
|
||||
import {fromCallback} from 'app/server/lib/serverUtils';
|
||||
import {SQLiteDB} from 'app/server/lib/SQLiteDB';
|
||||
import * as bluebird from 'bluebird';
|
||||
import {assert} from 'chai';
|
||||
@@ -957,9 +956,9 @@ describe('backupSqliteDatabase', async function() {
|
||||
// Silly code to make a long random string to insert.
|
||||
// We can make a big db faster this way.
|
||||
const str = (new Array(100)).fill(1).map((_: any) => Math.random().toString(2)).join();
|
||||
stmt.run(str, str, str);
|
||||
await stmt.run(str, str, str);
|
||||
}
|
||||
await fromCallback(cb => stmt.finalize(cb));
|
||||
await stmt.finalize();
|
||||
});
|
||||
const stat = await fse.stat(src);
|
||||
assert(stat.size > 150 * 1000 * 1000);
|
||||
|
||||
Reference in New Issue
Block a user