• Kirill Smelkov's avatar
    *: tests: don't hang on exception in non-main thread · 08e0c9fb
    Kirill Smelkov authored
    Previously if an assert or something failed in spawned thread, the main
    thread was usually spinning indefinitely = tests hang. -> Switch all
    threading places to use sync.WorkGroup and this way if a thread fails,
    all other threads are canceled and the exception is reported back to
    wg.wait in main thread.
    
    Since we start to go this route, NotifyChannel is reworked to fully use
    channels instead of busy-waiting.
    08e0c9fb
test_thread.py 8.35 KB