mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-11 18:24:43 +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:
parent
c35efe15d2
commit
3d8f713eb7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user