diff --git a/plugins/github/test/org/jetbrains/plugins/github/GithubCreateGistTestBase.java b/plugins/github/test/org/jetbrains/plugins/github/GithubCreateGistTestBase.java index dc1bb01bbe8a..f01b5b003c85 100644 --- a/plugins/github/test/org/jetbrains/plugins/github/GithubCreateGistTestBase.java +++ b/plugins/github/test/org/jetbrains/plugins/github/GithubCreateGistTestBase.java @@ -39,8 +39,12 @@ public abstract class GithubCreateGistTestBase extends GithubTest { @Override public void tearDown() throws Exception { - deleteGist(); - super.tearDown(); + try { + deleteGist(); + } + finally { + super.tearDown(); + } } protected void deleteGist() throws IOException { diff --git a/plugins/github/test/org/jetbrains/plugins/github/GithubShareProjectTestBase.java b/plugins/github/test/org/jetbrains/plugins/github/GithubShareProjectTestBase.java index b86fd092b637..99c79ca2cf66 100644 --- a/plugins/github/test/org/jetbrains/plugins/github/GithubShareProjectTestBase.java +++ b/plugins/github/test/org/jetbrains/plugins/github/GithubShareProjectTestBase.java @@ -46,8 +46,12 @@ public abstract class GithubShareProjectTestBase extends GithubTest { @Override public void tearDown() throws Exception { - deleteGithubRepo(); - super.tearDown(); + try { + deleteGithubRepo(); + } + finally { + super.tearDown(); + } } protected void deleteGithubRepo() throws IOException {