1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-13 00:10:37 +02:00

Chore: Add a sleep in the note duplication test (#10719)

Fixes a test failure on very fast computers.
This commit is contained in:
CUI Hao
2024-07-15 07:33:59 -07:00
committed by GitHub
parent c35efe15d2
commit 3d8f713eb7

View File

@ -125,6 +125,8 @@ describe('models/Note', () => {
const folder1 = await Folder.save({ title: 'folder1' });
const note1 = await Note.save({ title: 'note', parent_id: folder1.id });
await msleep(1);
const duplicatedNote = await Note.duplicate(note1.id);
expect(duplicatedNote !== note1).toBe(true);