1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

Chore: Fixed test that fails on fast enough computers

This commit is contained in:
Laurent Cozic
2025-03-05 00:42:52 +00:00
parent 67ae0ea2d1
commit 69fb1ab104

View File

@@ -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);