test(f=None,
timeout=5,
main_thread=False,
test=True)
| source code
|
Decorator function test to run distributed algorithm tests in safe
environment. Logs failed tests.
- Parameters:
f - the test (a function) to run.
timeout - the number of seconds to allow the test to run, before timing it
out (causing it to fail).
main_thread - True iff the test cannot run on a thread other than the main
thread.
test - If false, skips testing this function. Useful because it can be
set to default to false, and then set to True for a select few
tests currently being tested.
|