Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ public void setupIngestionFile() throws Exception {
try (FileChannel channel = FileChannel.open(shardFile, StandardOpenOption.READ)) {
channel.force(true);
}

// Wait for file to be fully visible by reading it back
// This prevents race conditions where tests start before file is ready
assertBusy(() -> {
java.util.List<String> lines = Files.readAllLines(shardFile, StandardCharsets.UTF_8);
assertEquals("File should have exactly 2 lines", 2, lines.size());
assertTrue("First line should contain alice", lines.get(0).contains("alice"));
assertTrue("Second line should contain bob", lines.get(1).contains("bob"));
});
}

public void testFileIngestion() throws Exception {
Expand Down
Loading