Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix load test according to adding a new load node, fixes #544 #595

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

evgeniiz321
Copy link
Contributor

No description provided.

@evgeniiz321 evgeniiz321 changed the title Fix load test according to adding a new load node, fixing #544 Fix load test according to adding a new load node, fixes #544 Aug 13, 2023
pytest_tests/helpers/k6.py Show resolved Hide resolved
pytest_tests/helpers/k6.py Outdated Show resolved Hide resolved
OBJ_SIZE = os.getenv("OBJ_SIZE", "1000").split(",")
CONTAINERS_COUNT = os.getenv("CONTAINERS_COUNT", "1").split(",")
OBJ_SIZE = [int(o) for o in os.getenv("OBJ_SIZE", "1000").split(",")]
CONTAINERS_COUNT = [int(c) for c in os.getenv("CONTAINERS_COUNT", "1").split(",")]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why a loop here? I'd expect these to be simple numbers.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a little bit strange design, but as I understand, the original intention was to pass test parametrization variables through env vars, but these vars are strings (or more precisely a list of strings, since .split() was used). But these variables are used as ints inside the test, so we need to convert them to ints here. Otherwise inside the test there are numerous TypeError exceptions.

Signed-off-by: Evgeniy Zayats <zayatsevgeniy@nspcc.io>
@roman-khimov roman-khimov merged commit b1767cc into nspcc-dev:master Aug 15, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants