resetInitStateForTesting static method
Restores static initialization and runtime configuration state, so one
test cannot leak state into the next. _isRootIsolate is included
deliberately: it is written by a successful initialize and then selects
between the callback and blocking background-channel paths, so leaving it
set would make later tests order-dependent.
Implementation
@visibleForTesting
static void resetInitStateForTesting() {
_futureInitialization = null;
_isInitialized = false;
_initialConfig = null;
_isRootIsolate = false;
_resetServiceStateAfterSuccessfulInitialization();
_configEpoch = 0;
_platformTransactions.clear();
}