Skip to content

Commit

Permalink
Merge pull request #16857 from donaldsharp/logger_warning
Browse files Browse the repository at this point in the history
tests: use logger.warning not logger.warn
  • Loading branch information
mjstapp authored Sep 18, 2024
2 parents 31c0151 + 3d3c0e3 commit f075792
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/topotests/lib/common_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ def generate_support_bundle():

tgen = get_topogen()
if tgen is None:
logger.warn(
logger.warning(
"Support bundle attempted to be generated, but topogen is not being used"
)
return True
Expand Down
2 changes: 1 addition & 1 deletion tests/topotests/lib/topotest.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def run_and_expect(func, what, count=20, wait=3):
minimum_wait_time = 15 # The overall minimum seconds for the test to wait
wait_time = wait * count
if wait_time < minimum_wait_time:
logger.warn(
logger.warning(
f"Waiting time is too small (count={count}, wait={wait}), using default values (count={minimum_count}, wait={minimum_wait})"
)
count = minimum_count
Expand Down

0 comments on commit f075792

Please sign in to comment.