Skip to content

Commit

Permalink
attempt to fix out-of-band change test under Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
scholarsmate committed Mar 27, 2024
1 parent 7b09061 commit 5f69547
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/client/tests/specs/session.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,10 @@ describe('Sessions', () => {
expect(save_session_response.getFilePath()).to.equal(save1)
fs.unlinkSync(save_session_response.getFilePath())

// pause for 1 second because that's the highest resolution supported by
// Windows file timestamps
await new Promise((resolve) => setTimeout(resolve, 1000))

// touch the original file to simulate an out-of-band change
touch(testFile)

Expand Down

0 comments on commit 5f69547

Please sign in to comment.