Skip to content

Commit

Permalink
[7.17](backport #35667) Feature/improve tests syntax (#35700)
Browse files Browse the repository at this point in the history
* Feature/improve tests syntax (#35667)

* feature/improve-tests-syntax, update increment

* feature/improve-tests-syntax, update increment

* feature/improve-tests-syntax, update increment

* feature/improve-tests-syntax, improve changelog

* feature/feature/improve-tests-syntax, add summary to proper changelog file

(cherry picked from commit 949d713)

* Update CHANGELOG-developer.next.asciidoc

---------

Co-authored-by: bgvladedivac <[email protected]>
Co-authored-by: Pierre HILBERT <[email protected]>
  • Loading branch information
3 people authored Jun 7, 2023
1 parent 7169b26 commit c8b1ae8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
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

0 comments on commit c8b1ae8

Please sign in to comment.