test: fixup visibility tests (#44802)
* test: ensure all webContents are closed * test: ensure all webContents are closed * test: fixup api-web-request-spec.ts
This commit is contained in:
parent
433a7b69e3
commit
85a0240b5c
3 changed files with 12 additions and 6 deletions
|
@ -64,7 +64,6 @@ describe('webRequest module', () => {
|
|||
protocol.registerStringProtocol('cors', (req, cb) => cb(''));
|
||||
defaultURL = (await listen(server)).url + '/';
|
||||
http2URL = (await listen(h2server)).url + '/';
|
||||
console.log(http2URL);
|
||||
});
|
||||
|
||||
after(() => {
|
||||
|
@ -660,7 +659,7 @@ describe('webRequest module', () => {
|
|||
});
|
||||
|
||||
// Cleanup.
|
||||
after(() => {
|
||||
defer(() => {
|
||||
contents.destroy();
|
||||
server.close();
|
||||
ses.webRequest.onBeforeRequest(null);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue