8000 Not consistent tests · Issue #299 · cbeuw/Cloak · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Not consistent tests #299

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Randomneo opened this issue Mar 3, 2025 · 0 comments
Open

Not consistent tests #299

Randomneo opened this issue Mar 3, 2025 · 0 comments

Comments

@Randomneo
Copy link

I'm not go dev. But got issue with installing it on my machine. Installation package contain go test ./.... Which fails with this message:

--- FAIL: TestParseRedirAddr (0.01s)
    --- FAIL: TestParseRedirAddr/domain_without_port (0.00s)
        state_test.go:52: expected 23.215.0.136 got 96.7.128.198
    --- FAIL: TestParseRedirAddr/domain_with_port (0.00s)
        state_test.go:72: expected 23.215.0.136 got 23.215.0.138

I found out that test relay on ip resolving of example.com which is not consistent (each ping command resolves to different ipv4) example.com ips

and by replacing example.com with github.com or my personal domain in internal/server/state_test.go solved the issue

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

No branches or pull requests

1 participant
0