test(stats): align large-session newOffset with lenient parser (PR #3735 merge)
This commit is contained in:
@@ -62,7 +62,9 @@ describe("large session parsing", () => {
|
||||
|
||||
const result = await parseSessionFile(sessionFile);
|
||||
|
||||
expect(result.newOffset).toBe(entry.length * entryCount - 1);
|
||||
// The lenient line scanner consumes the entire file (every line is `\n`-terminated),
|
||||
// so the resume offset is the full byte length rather than the byte before the final newline.
|
||||
expect(result.newOffset).toBe(entry.length * entryCount);
|
||||
expect(result.stats).toEqual([]);
|
||||
expect(result.userStats).toEqual([]);
|
||||
expect(result.userLinks).toEqual([]);
|
||||
|
||||
Reference in New Issue
Block a user