Skip to content

Commit

Permalink
HH-219477 up balance-client
Browse files Browse the repository at this point in the history
  • Loading branch information
712u3 committed Jun 17, 2024
1 parent 1e225c9 commit 32b184e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ lxml = '4.9.2'
pydantic = '^2.3.0'
tornado = '6.3.2'
orjson = '*'
http-client = {git = 'https://github.com/hhru/balancing-http-client.git', tag = '2.1.12'}
http-client = {git = 'https://github.com/hhru/balancing-http-client.git', tag = '2.1.13'}
python-consul2-hh = {git = 'https://github.com/hhru/python-consul2', tag = 'v0.2.10'}
opentelemetry-sdk = '1.17.0'
opentelemetry-api = '1.17.0'
Expand Down
5 changes: 2 additions & 3 deletions tests/test_balancer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
class TestHttpError:
free_port = None

@classmethod
def setup_class(cls) -> None:
def setup_method(self) -> None:
frontik_balancer_app.start()
frontik_broken_balancer_app.start()
cls.free_port = find_free_port(from_port=10000, to_port=20000)
self.free_port = find_free_port(from_port=10000, to_port=20000)

def make_url(self, url: str) -> str:
return (
Expand Down
5 changes: 3 additions & 2 deletions tests/test_sentry_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ async def put_page():

class TestSentryIntegration(FrontikTestBase):
@pytest.fixture(scope='class')
def frontik_app(self) -> FrontikApplication:
def frontik_app(self) -> Any:
frontik_test_app.start()
options.sentry_dsn = f'http://[email protected]:{frontik_test_app.port}/2'
return FrontikApplication()
yield FrontikApplication()
options.sentry_dsn = None

async def test_sentry_exception(self):
frontik_test_app.get_page('api/2/envelope/', method=requests.delete)
Expand Down

0 comments on commit 32b184e

Please sign in to comment.