Patchwork [gccgo] Fix HTTP redirect test

login
register
mail settings
Submitter Ian Taylor
Date Sept. 22, 2010, 9:41 p.m.
Message ID <mcr39t18nhe.fsf@google.com>
Download mbox | patch
Permalink /patch/65459/
State New
Headers show

Comments

Ian Taylor - Sept. 22, 2010, 9:41 p.m.
The HTTP redirect test in the Go library started failing, because of
some change in the web site which it checks (codesearch.google.com).
This patch, copied from the master Go library, changes the test so that
it works again.  Committed to gccgo branch.

Ian

Patch

diff -r d54ea9a3b14d libgo/go/http/request_test.go
--- a/libgo/go/http/request_test.go	Mon Sep 20 10:24:28 2010 -0700
+++ b/libgo/go/http/request_test.go	Wed Sep 22 14:39:45 2010 -0700
@@ -139,8 +139,8 @@ 
 
 func TestRedirect(t *testing.T) {
 	const (
-		start = "http://codesearch.google.com/"
-		end   = "http://www.google.com/codesearch"
+		start = "http://google.com/"
+		end   = "http://www.google.com/"
 	)
 	r, url, err := Get(start)
 	if err != nil {