Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1ed2b4b

Browse filesBrowse files
authored
fix(test): skip the EACCESS test on Windows
1 parent 3de41a6 commit 1ed2b4b
Copy full SHA for 1ed2b4b

File tree

Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed

‎arduino-ide-extension/src/test/node/sketches-service-impl.slow-test.ts

Copy file name to clipboardExpand all lines: arduino-ide-extension/src/test/node/sketches-service-impl.slow-test.ts
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,13 @@ describe('isAccessibleSketchPath', () => {
6767
expect(actual).to.be.equal(aSketchFilePath);
6868
});
6969

70-
it('should ignore EACCESS', async () => {
70+
it('should ignore EACCESS (non-Windows)', async function () {
71+
if (isWindows) {
72+
// `stat` syscall does not result in an EACCESS on Windows after stripping the file permissions.
73+
// an `open` syscall would, but IDE2 on purpose does not check the files.
74+
// the sketch files are provided by the CLI after loading the sketch.
75+
return this.skip();
76+
}
7177
const sketchFolderPath = join(testDirPath, 'my_sketch');
7278
const mainSketchFilePath = join(sketchFolderPath, 'my_sketch.ino');
7379
await fs.mkdir(sketchFolderPath, { recursive: true });

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.