Skip to content

Fix broken tests#238

Merged
pierrec merged 4 commits into
pierrec:v4from
ncruces:ncruces
Jan 16, 2026
Merged

Fix broken tests#238
pierrec merged 4 commits into
pierrec:v4from
ncruces:ncruces

Conversation

@ncruces

@ncruces ncruces commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

This fixes various test breakages introduced in #202, #220, #228 and #229.

Unfortunately it deletes some test code to do so, because those tests are incompatible with #229, in particular.

This was introduced in #228.
These were broken since #220 and EOF resets the frame, which clears the
ContentSize, and both ReadAll and Copy read through EOF.

Also clarified the comment, as #229 means this is only really useful for
the current frame, whereas a stream is now a sequence of frames.
I don't know what's going on with the test files, but both report errors
when ran through:

    lz4 --test file.lz4

Since #229 tries to continue reading past the first frame, it causes
these errors to show up.
@pierrec

pierrec commented Jan 14, 2026

Copy link
Copy Markdown
Owner

Thanks for looking into this. Somee tests are still failing though.

@ncruces

ncruces commented Jan 14, 2026

Copy link
Copy Markdown
Contributor Author

Humm, I think I only ran go test and not go test ./.... My bad, let me check.

The complaint seems to be missing test data.

This was introduced in 0f7173a to fix #202.
@ncruces

ncruces commented Jan 14, 2026

Copy link
Copy Markdown
Contributor Author

Done.

@ncruces

ncruces commented Jan 14, 2026

Copy link
Copy Markdown
Contributor Author

I've also checked #231, and (1) the bug exists, (2) the fix seems to work.

@pierrec pierrec merged commit a6fe6d4 into pierrec:v4 Jan 16, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants