Browse Source

test: disable shell.trashItem in renderer test on win-ia32 (#28878)

Co-authored-by: Jeremy Rose <[email protected]>
trop[bot] 4 years ago
parent
commit
85103fdc60
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spec-main/api-shell-spec.ts

+ 1 - 1
spec-main/api-shell-spec.ts

@@ -129,7 +129,7 @@ describe('shell module', () => {
       await expect(shell.trashItem(filename)).to.eventually.be.rejected();
     });
 
-    it('works in the renderer process', async () => {
+    ifit(!(process.platform === 'win32' && process.arch === 'ia32'))('works in the renderer process', async () => {
       const w = new BrowserWindow({ show: false, webPreferences: { nodeIntegration: true, contextIsolation: false } });
       w.loadURL('about:blank');
       await expect(w.webContents.executeJavaScript('require(\'electron\').shell.trashItem(\'does-not-exist\')')).to.be.rejectedWith(/does-not-exist|Failed to move item|Failed to create FileOperation/);