spec: force create network context for proxy tests
This commit is contained in:
parent
7a68d632e6
commit
d97cf8c438
1 changed files with 6 additions and 1 deletions
|
@ -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(() => {
|
||||
|
|
Loading…
Reference in a new issue