Skip to content

Commit

Permalink
Fix a false positive root finding unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Yu committed Oct 3, 2024
1 parent 27630e8 commit 6fa4477
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/units/04_core_root.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,13 +525,13 @@ describe(path.basename(__filename).split('.')[0] + ':', () => {
cacheSpy1.restore()

assert.ok(lw.watcher.src.has(vscode.Uri.file(texPath)))
assert.strictEqual(cacheSpy1.callCount, 1)
assert.ok(cacheSpy1.called)

await lw.cache.wait(texPath)
await sleep(50)
cacheSpy2.restore()

assert.strictEqual(cacheSpy2.callCount, 1)
assert.ok(cacheSpy2.called)
})
})
})

0 comments on commit 6fa4477

Please sign in to comment.