Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mtache committed Sep 25, 2024
1 parent 6484f72 commit a29d330
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/benchmark/test_anta.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ def bench() -> ResultManager:
asyncio.run(main(manager, inventory, catalog, dry_run=True))
return manager

manager = benchmark(lambda: bench()) # pylint: disable=unnecessary-lambda
manager = benchmark(bench)

logging.disable(logging.NOTSET)
if len(manager.results) != 0:
pytest.fail("ANTA Dry-Run mode should not return any result", pytrace=False)
Expand Down Expand Up @@ -75,7 +76,8 @@ def bench() -> ResultManager:
asyncio.run(main(manager, inventory, catalog))
return manager

manager = benchmark(lambda: bench()) # pylint: disable=unnecessary-lambda
manager = benchmark(bench)

logging.disable(logging.NOTSET)

if len(catalog.tests) * len(inventory) != len(manager.results):
Expand Down

0 comments on commit a29d330

Please sign in to comment.