Skip to content

Commit

Permalink
Add test of logging in tests
Browse files Browse the repository at this point in the history
Just to be run manually to inspect the output.
  • Loading branch information
Kristian Larsson committed Jan 27, 2025
1 parent a7b3d00 commit 4d8b8d1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/test_testing/src/logg.act
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import logging
import testing

actor AsyncTester(report_result, log_handler):
log = logging.Logger(log_handler)

def done():
report_result(False, None)

def test():
log.info("AsyncTester.test()", None)
after 0.01: done()

def _test_asyncact(report_result, log_handler: logging.Handler) -> None:
s = AsyncTester(report_result, log_handler)
s.test()

0 comments on commit 4d8b8d1

Please sign in to comment.