mirror of
https://github.com/electron/electron.git
synced 2026-01-27 16:28:23 -05:00
spec: force create network context for proxy tests
This commit is contained in:
@@ -541,8 +541,13 @@ describe('session module', () => {
|
||||
let server = null
|
||||
let customSession = null
|
||||
|
||||
beforeEach(() => {
|
||||
beforeEach((done) => {
|
||||
customSession = session.fromPartition('proxyconfig')
|
||||
// FIXME(deepak1556): This is just a hack to force
|
||||
// creation of request context which in turn initializes
|
||||
// the network context, can be removed with network
|
||||
// service enabled.
|
||||
customSession.clearHostResolverCache(() => done())
|
||||
})
|
||||
|
||||
afterEach(() => {
|
||||
|
||||
Reference in New Issue
Block a user