github: fix tests

follow-up: 6f7d1a6f17
follow-up: fad925ee37
This commit is contained in:
Aleksey Pivovarov
2016-08-01 15:01:54 +03:00
parent c30e857e00
commit 92a60b087d
2 changed files with 7 additions and 2 deletions
@@ -15,8 +15,8 @@
*/
package org.jetbrains.plugins.github;
import com.intellij.mock.MockProgressIndicator;
import com.intellij.notification.NotificationType;
import com.intellij.openapi.progress.DumbProgressIndicator;
import com.intellij.openapi.progress.ProgressIndicator;
import org.jetbrains.plugins.github.util.GithubAuthData;
import org.jetbrains.plugins.github.util.GithubAuthDataHolder;
@@ -30,7 +30,7 @@ import static org.jetbrains.plugins.github.api.GithubGist.FileContent;
* @author Aleksey Pivovarov
*/
public class GithubCreateGistTest extends GithubCreateGistTestBase {
private final ProgressIndicator myIndicator = new MockProgressIndicator();
private final ProgressIndicator myIndicator = DumbProgressIndicator.INSTANCE;
public void testSimple() throws Throwable {
List<FileContent> expected = createContent();
@@ -206,4 +206,9 @@ public abstract class GithubTest extends GitPlatformTest {
protected void afterTest() throws Exception {
}
@Override
protected boolean runInDispatchThread() {
return true;
}
}