cmd/golangorg: update TestLiveServer for path and and date changes
CL 296383 removed a trailing slash and .html suffix from some URLs.
CL 296429 changed the date format from yyyy/mm/dd to yyyy-mm-dd.
Update TestLiveServer accordingly so it passes on an instance that
would be deployed.
Change-Id: I6a632c8db1a6bc335946a7f6b131c6af60021b94
Reviewed-on: https://go-review.googlesource.com/c/website/+/322971
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
diff --git a/cmd/golangorg/regtest_test.go b/cmd/golangorg/regtest_test.go
index 9b7b48d..38db14b 100644
--- a/cmd/golangorg/regtest_test.go
+++ b/cmd/golangorg/regtest_test.go
@@ -5,7 +5,7 @@
//go:build go1.16
// +build go1.16
-// Regression tests to run against a production instance of godoc.
+// Regression tests to run against a production instance of golangorg.
package main_test
@@ -123,12 +123,12 @@
},
{
Message: "release history page has an entry for Go 1.14.2",
- Path: "/doc/devel/release.html",
- Regexp: `go1\.14\.2\s+\(released 2020/04/08\)\s+includes\s+fixes to cgo, the go command, the runtime,`,
+ Path: "/doc/devel/release",
+ Regexp: `go1\.14\.2\s+\(released 2020-04-08\)\s+includes\s+fixes to cgo, the go command, the runtime,`,
},
{
Message: "Go project page has an entry for Go 1.14",
- Path: "/project/",
+ Path: "/project",
Substring: `<li><a href="/doc/go1.14">Go 1.14</a> <small>(February 2020)</small></li>`,
},
{