diff --git a/compiler/tests/org/jetbrains/jet/JetTestUtils.java b/compiler/tests/org/jetbrains/jet/JetTestUtils.java index 6f4681404da..6798790362e 100644 --- a/compiler/tests/org/jetbrains/jet/JetTestUtils.java +++ b/compiler/tests/org/jetbrains/jet/JetTestUtils.java @@ -385,7 +385,8 @@ public class JetTestUtils { null, javaFileObjectsFromFiles); - Assert.assertTrue(errorsToString(diagnosticCollector), task.call()); + Boolean success = task.call(); // do NOT inline this variable, call() should complete before errorsToString() + Assert.assertTrue(errorsToString(diagnosticCollector), success); } finally { fileManager.close(); }