SERVER-136721ClosedFixed
Fix race in TaskRunnerTest
There's a race between scheduling a task and checking that the task runner is active: if the task finishes running between when it's scheduled and when {{active}} is checked, then the task runner will not be active. We must guarantee that the task will not complete before we check.