From 5e7fd78028f1ab1b6f1477a2ba05643f8be58d71 Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Fri, 16 Oct 2015 19:14:00 +0300 Subject: [PATCH] Don't cause tests to hang because of UnsupportedAbiVersion notification --- .../versions/UnsupportedAbiVersionNotificationPanelProvider.java | 1 + 1 file changed, 1 insertion(+) diff --git a/idea/src/org/jetbrains/kotlin/idea/versions/UnsupportedAbiVersionNotificationPanelProvider.java b/idea/src/org/jetbrains/kotlin/idea/versions/UnsupportedAbiVersionNotificationPanelProvider.java index 1d9c02020ae..6f66f7b132f 100644 --- a/idea/src/org/jetbrains/kotlin/idea/versions/UnsupportedAbiVersionNotificationPanelProvider.java +++ b/idea/src/org/jetbrains/kotlin/idea/versions/UnsupportedAbiVersionNotificationPanelProvider.java @@ -195,6 +195,7 @@ public class UnsupportedAbiVersionNotificationPanelProvider extends EditorNotifi public EditorNotificationPanel createNotificationPanel(@NotNull VirtualFile file, @NotNull FileEditor fileEditor) { try { if (DumbService.isDumb(project)) return null; + if (ApplicationManager.getApplication().isUnitTestMode()) return null; if (file.getFileType() != JetFileType.INSTANCE) return null; if (CompilerManager.getInstance(project).isExcludedFromCompilation(file)) return null;