mirror of https://github.com/laurent22/joplin.git
Chore: Add a sleep in the note duplication test (#10719)
Fixes a test failure on very fast computers.pull/10678/head^2
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