From f9cc8003b6fd9ec53c08f4fcc382e60b201fb955 Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Wed, 25 May 2016 14:27:06 +0300 Subject: [PATCH] git: fix tests Task.queue() should be called from EDT it was broken in 7281d44 - BackgroundTaskQueue allows non-EDT access --- plugins/git4idea/src/git4idea/GitVcs.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/git4idea/src/git4idea/GitVcs.java b/plugins/git4idea/src/git4idea/GitVcs.java index 5de354f4d328..eed4c7bb4549 100644 --- a/plugins/git4idea/src/git4idea/GitVcs.java +++ b/plugins/git4idea/src/git4idea/GitVcs.java @@ -168,7 +168,7 @@ public class GitVcs extends AbstractVcs { * @param task the task to run */ public static void runInBackground(Task.Backgroundable task) { - task.queue(); + UIUtil.invokeLaterIfNeeded(() -> task.queue()); } @Override