build: update mocha for retries and audit fix (#37117)

This commit is contained in:
Samuel Attard 2023-02-02 17:40:30 -08:00 committed by GitHub
parent d069b8fc66
commit 6e0d63c356
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 330 additions and 90 deletions

View file

@ -1516,6 +1516,7 @@ describe('app module', () => {
// to the Docker invocation allows the syscalls that Chrome needs, but
// are probably more permissive than we'd like.
this.skip();
return;
}
fs.unlink(socketPath, () => {
server = net.createServer();
@ -1527,13 +1528,17 @@ describe('app module', () => {
afterEach(done => {
if (appProcess != null) appProcess.kill();
server.close(() => {
if (process.platform === 'win32') {
done();
} else {
fs.unlink(socketPath, () => done());
}
});
if (server) {
server.close(() => {
if (process.platform === 'win32') {
done();
} else {
fs.unlink(socketPath, () => done());
}
});
} else {
done();
}
});
describe('when app.enableSandbox() is called', () => {