Skip to content

Commit

Permalink
Ignore one test on Windows, reduce usage of internal Exceptions in test
Browse files Browse the repository at this point in the history
  • Loading branch information
centic9 committed Nov 6, 2023
1 parent eab7a92 commit 95adb1b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/test/java/org/dstadler/jgitfs/JGitFSTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

import static org.junit.Assert.*;

import net.fusejna.FuseException;

public class JGitFSTest {

@Test
Expand All @@ -40,7 +38,10 @@ public void testMainOneArgFileDot() {
}

@Test
public void testMainOneArgDot() throws FuseException, IOException, InterruptedException {
public void testMainOneArgDot() throws Exception {
Assume.assumeFalse("Not executed on Windows for now because of https://github.com/EtiennePerot/fuse-jna/issues/40",
SystemUtils.IS_OS_WINDOWS);

try {
JGitFS.main("--test-only", ".");
} catch (IOException e) {
Expand Down Expand Up @@ -72,7 +73,9 @@ public void testMainCurrentProject() {

@Test
public void testMainMultiple() throws Exception {
Assume.assumeFalse("Not executed on Windows for now because of https://github.com/EtiennePerot/fuse-jna/issues/44", SystemUtils.IS_OS_WINDOWS);
Assume.assumeFalse("Not executed on Windows for now because of https://github.com/EtiennePerot/fuse-jna/issues/44",
SystemUtils.IS_OS_WINDOWS);

try {
// if we have one that works and the last one an invalid one we get an exception, but did the mounting
// for the first one
Expand Down

0 comments on commit 95adb1b

Please sign in to comment.