Skip to content

Commit

Permalink
Turn off some tests for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwiseman committed Jan 29, 2020
1 parent 6a5886e commit d577985
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/java/org/kohsuke/github/AppTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import com.google.common.base.Predicate;
import com.google.common.collect.Iterables;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.SystemUtils;
import org.junit.Assume;
import org.junit.Ignore;
import org.junit.Test;
import org.kohsuke.github.GHCommit.File;
Expand Down Expand Up @@ -896,6 +898,8 @@ public void listOrgMemberships() throws Exception {

@Test
public void blob() throws Exception {
Assume.assumeFalse(SystemUtils.IS_OS_WINDOWS);

GHRepository r = gitHub.getRepository("github-api/github-api");
String sha1 = "a12243f2fc5b8c2ba47dd677d0b0c7583539584d";

Expand Down
4 changes: 4 additions & 0 deletions src/test/java/org/kohsuke/github/GHOrganizationTest.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package org.kohsuke.github;

import org.apache.commons.lang3.SystemUtils;
import org.junit.After;
import org.junit.Assert;
import org.junit.Assume;
import org.junit.Before;
import org.junit.Test;
import org.kohsuke.github.GHOrganization.Permission;
Expand Down Expand Up @@ -29,6 +31,7 @@ public void cleanUpTeam() throws IOException {

@Test
public void testCreateRepository() throws IOException {
Assume.assumeFalse(SystemUtils.IS_OS_WINDOWS);
cleanupRepository(GITHUB_API_TEST_ORG + '/' + GITHUB_API_TEST);

GHOrganization org = gitHub.getOrganization(GITHUB_API_TEST_ORG);
Expand All @@ -42,6 +45,7 @@ public void testCreateRepository() throws IOException {

@Test
public void testCreateRepositoryWithAutoInitialization() throws IOException {
Assume.assumeFalse(SystemUtils.IS_OS_WINDOWS);
cleanupRepository(GITHUB_API_TEST_ORG + '/' + GITHUB_API_TEST);

GHOrganization org = gitHub.getOrganization(GITHUB_API_TEST_ORG);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.OkUrlFactory;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.SystemUtils;
import org.junit.Assume;
import org.junit.Before;
import org.junit.Test;
import org.kohsuke.github.AbstractGitHubWireMockTest;
Expand Down Expand Up @@ -54,6 +56,8 @@ public void setupRepo() throws Exception {

@Test
public void testCached404() throws Exception {
Assume.assumeFalse(SystemUtils.IS_OS_WINDOWS);

// ISSUE #669
snapshotNotAllowed();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import okhttp3.Cache;
import okhttp3.OkHttpClient;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.SystemUtils;
import org.junit.Assume;
import org.junit.Before;
import org.junit.Test;
import org.kohsuke.github.AbstractGitHubWireMockTest;
Expand Down Expand Up @@ -55,6 +57,8 @@ public void setupRepo() throws Exception {

@Test
public void testCached404() throws Exception {
Assume.assumeFalse(SystemUtils.IS_OS_WINDOWS);

// ISSUE #669
snapshotNotAllowed();

Expand Down

0 comments on commit d577985

Please sign in to comment.