Skip to content

Commit

Permalink
spec: force create network context for proxy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak1556 committed Dec 3, 2018
1 parent 7a68d63 commit d97cf8c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/api-session-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit d97cf8c

Please sign in to comment.