diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f3d1ff1..002b8f1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: with: java-version: '11' distribution: 'temurin' - cache: gradle + # cache: gradle - name: Compile library run: ./gradlew :centrifuge:jar diff --git a/centrifuge/src/test/java/io/github/centrifugal/centrifuge/FossilTest.java b/centrifuge/src/test/java/io/github/centrifugal/centrifuge/FossilTest.java index b94b717..09d5cd0 100644 --- a/centrifuge/src/test/java/io/github/centrifugal/centrifuge/FossilTest.java +++ b/centrifuge/src/test/java/io/github/centrifugal/centrifuge/FossilTest.java @@ -226,7 +226,7 @@ public void testApplyDelta() throws Exception { @Test public void testApplyDeltaFromFiles() throws Exception { for (int i = 1; i <= 5; i++) { - String dir = "data/" + i; + String dir = "/data/" + i; byte[] origin = readResourceAsBytes(dir + "/origin"); byte[] target = readResourceAsBytes(dir + "/target"); @@ -265,6 +265,8 @@ public void testApplyDeltaWithTruncatedDelta() throws Exception { * Helper method to read a resource file into a byte array. */ private byte[] readResourceAsBytes(String resourcePath) throws Exception { + System.out.println("Resource path: " + resourcePath); + System.out.println("Resolved: " + getClass().getResourceAsStream(resourcePath)); InputStream inputStream = getClass().getClassLoader().getResourceAsStream(resourcePath); if (inputStream == null) { throw new Exception("Resource not found: " + resourcePath);