Chore: Fixed test that fails on fast enough computers

pull/11926/head^2
Laurent Cozic 2025-03-05 00:42:52 +00:00
parent 67ae0ea2d1
commit 69fb1ab104
1 changed files with 3 additions and 1 deletions

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