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

[7.17](backport #35667) Feature/improve tests syntax #35700

Merged
merged 2 commits into from
Jun 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG-developer.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ The list below covers the major changes between 7.0.0-rc2 and master only.
- Introduce `libbeat/beat.Beat.OutputConfigReloader` {pull}28048[28048]
- Update Go version to 1.17.1. {pull}27543[27543]
- Whitelist `GCP_*` environment variables in dev tools {pull}28364[28364]
- Improve tests files with shorter statements. {pull}35667[35667]

==== Deprecated

Expand Down
2 changes: 1 addition & 1 deletion filebeat/tests/load/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
randomString = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(length))
log_message = timestamp + " " + str(count) + " " + str(uuid.uuid4()) + " " + randomString
my_logger.debug(log_message)
count = count + 1
count += 1
time.sleep(sleepTime)
2 changes: 1 addition & 1 deletion filebeat/tests/open-file-handlers/log_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
while True:
# for i in range(0, 10000):
time.sleep(random.uniform(0, 0.1))
i = i + 1
i += 1
# Tries to cause some more heavy peaks
events = random.randrange(10) + 1
for n in range(events):
Expand Down