[junit] ensure test is marked failed even when incomplete event is received (IDEA-283215)

GitOrigin-RevId: 4573495e05a3869430f110dacb4b9b54a5e16fde
This commit is contained in:
Anna Kozlova
2021-11-24 17:26:24 +00:00
committed by intellij-monorepo-bot
parent 144a93eeb6
commit 31c7748884
@@ -1,4 +1,4 @@
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.execution.testframework.sm.runner;
import com.intellij.execution.testframework.Printer;
@@ -325,6 +325,7 @@ public class GeneralIdBasedToSMTRunnerEventsConvertor extends GeneralTestEventsP
+ comparisonFailureExpectedText + "\n"
+ "Actual:\n"
+ comparisonFailureActualText);
testProxy.setTestFailed(failureMessage, stackTrace, testFailedEvent.isTestError());
}
long duration = testFailedEvent.getDurationMillis();
if (duration >= 0) {