Skip to content

Commit be40598

Browse files
committed
Do not test file modes on Windows
1 parent a80098d commit be40598

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

extensions/ql-vscode/test/unit-tests/common/unzip.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,11 @@ async function expectFile(
166166
) {
167167
const file = await open(filePath, "r");
168168

169-
const stats = await file.stat();
170-
expect(stats.mode).toEqual(expectedMode);
169+
// Windows doesn't really support file modes
170+
if (process.platform !== "win32") {
171+
const stats = await file.stat();
172+
expect(stats.mode).toEqual(expectedMode);
173+
}
171174

172175
const contents = await file.readFile();
173176

0 commit comments

Comments
 (0)