Skip to content

Make invalid link test less brittle - #23

Open
aceroer wants to merge 40 commits into
goxray:mainfrom
aceroer:codex/fix-invalid-link-test
Open

Make invalid link test less brittle#23
aceroer wants to merge 40 commits into
goxray:mainfrom
aceroer:codex/fix-invalid-link-test

Conversation

@aceroer

@aceroer aceroer commented Jul 5, 2026

Copy link
Copy Markdown

Summary

  • Relax invalid-link test assertion to check the stable outer error context instead of a dependency-specific inner error string.

Why

The current test expects the dependency error text "invalid protocol type", but current xray-knife returns "invalid xray protocol" for the same invalid link. The production code still wraps both as "invalid xray link", so asserting that stable context keeps the test focused on the behavior owned by this project.

Test

  • PATH="/opt/homebrew/opt/go@1.25/bin:$PATH" go test ./...

@aceroer

aceroer commented Jul 5, 2026

Copy link
Copy Markdown
Author

Closing this for now. I am going to pursue a separate experimental client direction instead of asking upstream to carry this small compatibility patch.

@aceroer aceroer closed this Jul 5, 2026
@aceroer aceroer reopened this Jul 5, 2026
@aceroer
aceroer force-pushed the codex/fix-invalid-link-test branch from bbffbb8 to 9a5143a Compare July 29, 2026 15:37
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.

3 participants