mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 08:21:21 +00:00
added Authentication Check
Added additional authentication checks on gitHubBeforeAfter so that cleanup is done with a user logged in
This commit is contained in:
@@ -43,11 +43,11 @@ public class GitHubCachingTest extends AbstractGitHubWireMockTest {
|
||||
@Before
|
||||
public void setupRepo() throws Exception {
|
||||
if (mockGitHub.isUseProxy()) {
|
||||
for (GHPullRequest pr : getRepository(this.gitHubBeforeAfter).getPullRequests(GHIssueState.OPEN)) {
|
||||
for (GHPullRequest pr : getRepository(this.getGitHubBeforeAfter()).getPullRequests(GHIssueState.OPEN)) {
|
||||
pr.close();
|
||||
}
|
||||
try {
|
||||
GHRef ref = getRepository(this.gitHubBeforeAfter).getRef(testRefName);
|
||||
GHRef ref = getRepository(this.getGitHubBeforeAfter()).getRef(testRefName);
|
||||
ref.delete();
|
||||
} catch (IOException e) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user