Skip to content

Commit

Permalink
Fixing windows test.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-ry4n committed Oct 8, 2024
1 parent 4243e89 commit e04f4a9
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

package tech.pegasys.teku.storage.archive.fsarchive;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;

Expand Down Expand Up @@ -117,12 +116,13 @@ void testWriteBlobSidecar() throws IOException {
try (FileInputStream fis =
new FileInputStream(testTempDir.resolve(FileSystemArchive.INDEX_FILE).toFile())) {
String content = new String(fis.readAllBytes(), StandardCharsets.UTF_8);
assertEquals(
String expected =
blobSidecar.getSlot().toString()
+ " "
+ blobSidecar.getSlotAndBlockRoot().getBlockRoot().toUnprefixedHexString()
+ "\n",
content);
+ blobSidecar.getSlotAndBlockRoot().getBlockRoot().toUnprefixedHexString();

// Windows new lines are different, so don't include new lines in the comparison.
assertTrue(content.contains(expected));
}
}

Expand Down

0 comments on commit e04f4a9

Please sign in to comment.