From 31c7748884140eea359eaa1b9ea0679fb14c5647 Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Wed, 24 Nov 2021 12:49:24 +0100 Subject: [PATCH] [junit] ensure test is marked failed even when incomplete event is received (IDEA-283215) GitOrigin-RevId: 4573495e05a3869430f110dacb4b9b54a5e16fde --- .../sm/runner/GeneralIdBasedToSMTRunnerEventsConvertor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/GeneralIdBasedToSMTRunnerEventsConvertor.java b/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/GeneralIdBasedToSMTRunnerEventsConvertor.java index 7595a9f1be66..8a5bc131cb39 100644 --- a/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/GeneralIdBasedToSMTRunnerEventsConvertor.java +++ b/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/GeneralIdBasedToSMTRunnerEventsConvertor.java @@ -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) {