Skip to content

Commit

Permalink
experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Oct 1, 2024
1 parent 22eb720 commit c335175
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
# cache: gradle

- name: Compile library
run: ./gradlew :centrifuge:jar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit c335175

Please sign in to comment.