Skip to content

Commit

Permalink
Fix test assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavsingh committed Sep 21, 2024
1 parent 2c6808a commit d6e220f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/http/proxy/test_http_proxy_tls_interception.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ async def asyncReturn(val: T) -> T:
)
self.proxy_plugin.return_value.before_upstream_connection.assert_called()
self.proxy_plugin.return_value.handle_client_request.assert_called_once()
self.proxy_plugin.return_value.do_intercept.assert_called_once()
self.assertEqual(self.proxy_plugin.return_value.do_intercept.call_count, 2)
# All the invoked lifecycle callbacks will receive the CONNECT request
# packet with / as the path
callback_request: HttpParser = \
Expand Down Expand Up @@ -297,7 +297,7 @@ async def asyncReturn(val: T) -> T:
self.proxy_plugin.return_value.handle_client_request.call_count,
2,
)
self.proxy_plugin.return_value.do_intercept.assert_called_once()
self.assertEqual(self.proxy_plugin.return_value.do_intercept.call_count, 2)

callback_request = \
self.proxy_plugin.return_value.handle_client_request.call_args_list[1][0][0]
Expand Down

0 comments on commit d6e220f

Please sign in to comment.