Skip to content

Commit

Permalink
Make tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
lptr committed Aug 19, 2024
1 parent 00925b1 commit b318129
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ abstract class AbstractFileEventFunctionsTest extends Specification {

public static final Logger LOGGER = Logger.getLogger(AbstractFileEventFunctionsTest.name)

private JulLogging logging = new JulLogging(NativeLogger, Level.CONFIG)
JulLogging logging = new JulLogging(NativeLogger, Level.CONFIG)

@TempDir
File tmpDir
Expand Down Expand Up @@ -79,7 +79,7 @@ abstract class AbstractFileEventFunctionsTest extends Specification {

watcherFixture = FileWatcherFixture.of(Platform.current())
LOGGER.info(">>> Running '${testName}'")
testDir = new File(tmpDir, testName)
testDir = new File(tmpDir.getCanonicalFile(), testName)
assert testDir.mkdirs()
rootDir = new File(testDir, "root")
assert rootDir.mkdirs()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import net.rubygrapefruit.platform.NativeException
import net.rubygrapefruit.platform.internal.Platform
import net.rubygrapefruit.platform.internal.jni.AbstractFileEventFunctions
import net.rubygrapefruit.platform.internal.jni.NativeLogger
import org.junit.jupiter.api.Assumptions
import spock.lang.IgnoreIf
import spock.lang.Requires
import spock.lang.Unroll
Expand Down Expand Up @@ -666,7 +667,7 @@ class BasicFileEventFunctionsTest extends AbstractFileEventFunctionsTest {
}

def "can watch directory with #type characters"() {
Assume.assumeTrue(supported as boolean)
Assumptions.assumeTrue(supported as boolean)

given:
def subDir = new File(rootDir, path)
Expand Down

0 comments on commit b318129

Please sign in to comment.