Resetting the table can be done by adding 'ipblocks' to the $tablesUsed property. However, simply doing this causes the BlockUserTest::testReblock to fail.
Ensure the tests aren't dependent on each other, and clear the ipblocks table between tests.
See also the conversation on https://gerrit.wikimedia.org/r/c/mediawiki/core/+/946545