Skip to content

Commit

Permalink
Handle inaccessible drives gracefully in filesystem metadata tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Nov 9, 2024
1 parent 83272f3 commit 7416e7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/__tests__/windows.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ describe("Filesystem Metadata", () => {
} catch (error) {
// Some drives might not be accessible (e.g., empty DVD drive)
console.log(`Skipping inaccessible drive ${drive}: ${error}`);
return
}
expect(metadata).toBeDefined();
expect(metadata?.mountpoint).toBe(drive);
Expand Down

0 comments on commit 7416e7c

Please sign in to comment.