Skip to content
  • Philippe Pepiot's avatar
    Fix testing tasks creating other tasks · 1ef783692e79
    Philippe Pepiot authored
    When a task create a new task (by calling start_async_task), _TEST_TASK was
    reset during the loop on it, this was leading to a KeyError (in case of
    multiple tasks) or in sub-tasks not being started.
    
    Fix this by not overriding _TEST_TASK for each new cubicweb connection and by
    consuming _TEST_TASK until there is no tasks left.
    1ef783692e79