You've already forked joplin
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user