fix: cookie test failing due to multiple rejection reasons

https://chromium-review.googlesource.com/c/chromium/src/+/7506629
This commit is contained in:
Samuel Maddock
2026-02-05 12:00:02 -05:00
parent f04f9dc365
commit b89e1c7152

View File

@@ -381,7 +381,7 @@ describe('net module (session)', () => {
url: 'https://electronjs.org',
domain: 'wssss.iamabaddomain.fun',
name: 'cookie1'
})).to.eventually.be.rejectedWith(/Failed to set cookie - The cookie was set with an invalid Domain attribute./);
})).to.eventually.be.rejectedWith(/The cookie was set with an invalid Domain attribute/);
});
it('should be able correctly filter out cookies that are session', async () => {