Patchwork libgo patch committed: Fix test

login
register
mail settings
Submitter Ian Taylor
Date Dec. 8, 2010, 12:14 a.m.
Message ID <mcr39q9nmsq.fsf@google.com>
Download mbox | patch
Permalink /patch/74615/
State New
Headers show

Comments

Ian Taylor - Dec. 8, 2010, 12:14 a.m.
One of the libgo networking tests broke because something changed on
Google's web site.  This patch, copied from the master repository, fixes
it.  Committed to mainline.

Ian

Patch

diff -r 4baa549be2cc libgo/go/net/dialgoogle_test.go
--- a/libgo/go/net/dialgoogle_test.go	Tue Dec 07 13:45:46 2010 -0800
+++ b/libgo/go/net/dialgoogle_test.go	Tue Dec 07 16:12:44 2010 -0800
@@ -17,7 +17,7 @@ 
 // fd is already connected to the destination, port 80.
 // Run an HTTP request to fetch the appropriate page.
 func fetchGoogle(t *testing.T, fd Conn, network, addr string) {
-	req := []byte("GET /intl/en/privacy.html HTTP/1.0\r\nHost: www.google.com\r\n\r\n")
+	req := []byte("GET /intl/en/privacy/ HTTP/1.0\r\nHost: www.google.com\r\n\r\n")
 	n, err := fd.Write(req)
 
 	buf := make([]byte, 1000)