You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
Chore: Fixed test that fails on fast enough computers
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
const time = require('../time').default;
|
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 Folder = require('../models/Folder').default;
|
||||||
const Note = require('../models/Note').default;
|
const Note = require('../models/Note').default;
|
||||||
|
|
||||||
@@ -95,6 +95,8 @@ describe('models/Note_CustomSortOrder', () => {
|
|||||||
|
|
||||||
const timeBefore = time.unixMs();
|
const timeBefore = time.unixMs();
|
||||||
|
|
||||||
|
await msleep(10);
|
||||||
|
|
||||||
await Note.insertNotesAt(folder1.id, [note2.id], 0);
|
await Note.insertNotesAt(folder1.id, [note2.id], 0);
|
||||||
await Note.insertNotesAt(folder1.id, [note1.id], 1);
|
await Note.insertNotesAt(folder1.id, [note1.id], 1);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user