mirror of https://github.com/laurent22/joplin.git
Chore: Fixed test that fails on fast enough computers
parent
67ae0ea2d1
commit
69fb1ab104
|
@ -1,5 +1,5 @@
|
|||
const time = require('../time').default;
|
||||
const { setupDatabaseAndSynchronizer, switchClient } = require('../testing/test-utils.js');
|
||||
const { setupDatabaseAndSynchronizer, switchClient, msleep } = require('../testing/test-utils.js');
|
||||
const Folder = require('../models/Folder').default;
|
||||
const Note = require('../models/Note').default;
|
||||
|
||||
|
@ -95,6 +95,8 @@ describe('models/Note_CustomSortOrder', () => {
|
|||
|
||||
const timeBefore = time.unixMs();
|
||||
|
||||
await msleep(10);
|
||||
|
||||
await Note.insertNotesAt(folder1.id, [note2.id], 0);
|
||||
await Note.insertNotesAt(folder1.id, [note1.id], 1);
|
||||
|
||||
|
|
Loading…
Reference in New Issue