Skip to content

Commit

Permalink
attempt to fix windows test error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorrit Poelen committed Sep 6, 2024
1 parent 8246b6b commit 678a169
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import bio.guoda.preston.Hasher;
import bio.guoda.preston.RefNodeFactory;
import bio.guoda.preston.store.HashKeyUtil;
import bio.guoda.preston.store.TestUtil;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
Expand Down Expand Up @@ -142,7 +143,7 @@ private void addReferences(ObjectNode zenodoMetadata) {
@Test
public void physicalObjectDeposit() throws IOException {
InputStream resourceAsStream = getClass().getResourceAsStream("darktaxon/occurrence.json");
String jsonString = IOUtils.toString(resourceAsStream, StandardCharsets.UTF_8);
String jsonString = TestUtil.removeCarriageReturn(IOUtils.toString(resourceAsStream, StandardCharsets.UTF_8));
JsonNode multimedia = new ObjectMapper().readTree(jsonString);
assertNotNull(multimedia);

Expand Down

0 comments on commit 678a169

Please sign in to comment.