Skip to content
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

http package fails test #1117

Closed
mark-summerfield opened this issue Sep 17, 2010 · 3 comments
Closed

http package fails test #1117

mark-summerfield opened this issue Sep 17, 2010 · 3 comments

Comments

@mark-summerfield
Copy link

Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?
1. I just followed the Getting Started instructions to download & build Go

What is the expected output?
N known bugs; 0 unexpected bugs etc.


What do you see instead?
make[1]: Entering directory `/home/mark/opt/go/src/pkg/http'
gotest
make[2]: Entering directory `/home/mark/opt/go/src/pkg/http'
rm -f _test/http.a _gotest_.8
make[2]: Leaving directory `/home/mark/opt/go/src/pkg/http'
make[2]: Entering directory `/home/mark/opt/go/src/pkg/http'
8g -o _gotest_.8 chunked.go client.go dump.go fs.go lex.go persist.go request.go
response.go server.go status.go transfer.go url.go  client_test.go lex_test.go
readrequest_test.go request_test.go requestwrite_test.go response_test.go
responsewrite_test.go url_test.go
rm -f _test/http.a
gopack grc _test/http.a _gotest_.8 
make[2]: Leaving directory `/home/mark/opt/go/src/pkg/http'
--- FAIL: http.TestClient
    Get http://www.google.com/robots.txt: dial tcp www.google.com:http: dial udp 192.168.0.1:53: network is unreachable
--- FAIL: http.TestClientHead
    dial tcp www.google.com:http: dial udp 192.168.0.1:53: network is unreachable
--- FAIL: http.TestRedirect
    Get http://codesearch.google.com/: dial tcp codesearch.google.com:http: dial udp 192.168.0.1:53: network is unreachable
FAIL
make[1]: *** [test] Error 1
make[1]: Leaving directory `/home/mark/opt/go/src/pkg/http'
make: *** [http.test] Error 2
: 


Which compiler are you using (5g, 6g, 8g, gccgo)?
Didn't manage to build one yet!

Which operating system are you using?
Debian testing 65-bit

Which revision are you using?  (hg identify)
9329773e204f tip

Please provide any additional information below.
@rsc
Copy link
Contributor

rsc commented Sep 17, 2010

Comment 1:

export DISABLE_NET_TESTS=1
./all.bash
Sorry about the trouble.

Status changed to Duplicate.

Merged into issue #20.

@mark-summerfield
Copy link
Author

Comment 2:

I tried that, but now I get a different problem (which I guess means that the
DISABLE_NET_TESTS=1 doesn't cover everything?). Also, I have a networked machine so
don't really understand why these tests wouldn't work (unless they involve google
internal servers). Anyway here's the problem:
cd netchan && gomake test
make[1]: Entering directory `/home/mark/opt/go/src/pkg/netchan'
gotest
make[2]: Entering directory `/home/mark/opt/go/src/pkg/netchan'
rm -f _test/netchan.a _gotest_.8
make[2]: Leaving directory `/home/mark/opt/go/src/pkg/netchan'
make[2]: Entering directory `/home/mark/opt/go/src/pkg/netchan'
8g -o _gotest_.8 common.go export.go import.go  netchan_test.go
rm -f _test/netchan.a
gopack grc _test/netchan.a _gotest_.8 
make[2]: Leaving directory `/home/mark/opt/go/src/pkg/netchan'
--- FAIL: netchan.TestExportSendImportReceive
    new exporter: listen tcp 127.0.0.1:0: invalid argument
--- FAIL: netchan.TestExportReceiveImportSend
    new exporter: listen tcp 127.0.0.1:0: invalid argument
--- FAIL: netchan.TestClosingExportSendImportReceive
    new exporter: listen tcp 127.0.0.1:0: invalid argument
--- FAIL: netchan.TestExportDrain
    new exporter: listen tcp 127.0.0.1:0: invalid argument
--- FAIL: netchan.TestExportSync
    new exporter: listen tcp 127.0.0.1:0: invalid argument
FAIL
make[1]: *** [test] Error 1
make[1]: Leaving directory `/home/mark/opt/go/src/pkg/netchan'
make: *** [netchan.test] Error 2

@mark-summerfield
Copy link
Author

Comment 3:

I no longer get this error and get a clean build on debian testing 64-bit:
Installed Go for linux/amd64 in /home/mark/opt/go.
Installed commands in /home/mark/opt/go/bin.
*** You need to add /home/mark/opt/go/bin to your $PATH. ***
The compiler is 6g.
Thanks for fixing this!

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants