Fix ActiveJob isolation tests.
Merge pull request #16534 from lucasmazza/lm-fix-rescue-test

Fix ActiveJob isolation tests.