} else if (!GWT.isProdMode() && result.exceptionWrapper != null) {
SerializationStreamFactory fac = (SerializationStreamFactory) junitHost;
SerializationStreamWriter writer = fac.createStreamWriter();
ensureSerializable(result.exceptionWrapper, writer);
}
TestInfo currentTest = getCurrentTest();
currentResults.put(currentTest, result);
++currentTestIndex;
if (currentTestIndex < currentBlock.getTests().length) {
// Run the next test after a short delay.
Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {