This fixes tests that were surfaced as flaky. Usually these tests had an off-by-one error when mining blocks while waiting for a CSV-encumbered output.