mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
test: allow retries for flaky mas loginitem specs (#16358)
This commit is contained in:
@@ -432,7 +432,10 @@ describe('app module', () => {
|
||||
})
|
||||
})
|
||||
|
||||
describe('app.get/setLoginItemSettings API', () => {
|
||||
describe('app.get/setLoginItemSettings API', function () {
|
||||
// allow up to three retries to account for flaky mas results
|
||||
this.retries(3)
|
||||
|
||||
const updateExe = path.resolve(path.dirname(process.execPath), '..', 'Update.exe')
|
||||
const processStartArgs = [
|
||||
'--processStart', `"${path.basename(process.execPath)}"`,
|
||||
@@ -440,9 +443,7 @@ describe('app module', () => {
|
||||
]
|
||||
|
||||
before(function () {
|
||||
if (process.platform === 'linux') {
|
||||
this.skip()
|
||||
}
|
||||
if (process.platform === 'linux') this.skip()
|
||||
})
|
||||
|
||||
beforeEach(() => {
|
||||
@@ -513,11 +514,7 @@ describe('app module', () => {
|
||||
})
|
||||
|
||||
it('allows you to pass a custom executable and arguments', function () {
|
||||
if (process.platform !== 'win32') {
|
||||
// FIXME(alexeykuzmin): Skip the test.
|
||||
// this.skip()
|
||||
return
|
||||
}
|
||||
if (process.platform !== 'win32') this.skip()
|
||||
|
||||
app.setLoginItemSettings({openAtLogin: true, path: updateExe, args: processStartArgs})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user