Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
flotwig committed Aug 8, 2019
1 parent 8d9ecd4 commit 561ea02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/https-proxy/test/integration/proxy_spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ describe "Proxy", ->
})
.then =>
throw new Error('should not succeed')
.catch { message: 'Error: Client network socket disconnected before secure TLS connection was established' }, =>
.catch { message: 'Error: socket hang up' }, =>
expect(createProxyConn).to.not.be.called
expect(createSocket).to.be.calledWith({
port: @proxy._sniPort
Expand Down
1 change: 1 addition & 0 deletions packages/server/lib/server.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,7 @@ class Server
@_fileServer?.close()
@_httpsProxy?.close()
)
.catch { message: "Not running" }, _.noop
.then =>
## reset any middleware
@_middleware = null
Expand Down

0 comments on commit 561ea02

Please sign in to comment.