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

Fixes a test failure on very fast computers.
pull/10678/head^2
CUI Hao 2024-07-15 07:33:59 -07:00 committed by GitHub
parent c35efe15d2
commit 3d8f713eb7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

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