aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitri Shuralyov <dmitshur@golang.org>2021-05-26 20:22:35 -0400
committerDmitri Shuralyov <dmitshur@golang.org>2021-06-01 15:04:05 +0000
commit64052e727d3c16a4b177c77c4dd01b877533f549 (patch)
treed3ab9006a33e660e8c763fe7000fcf71b5af001c
parent1a32f5073476d522610bbf84c44bc937b87c4b05 (diff)
downloadgo-x-website-64052e727d3c16a4b177c77c4dd01b877533f549.tar.xz
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>
-rw-r--r--cmd/golangorg/regtest_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/golangorg/regtest_test.go b/cmd/golangorg/regtest_test.go
index 9b7b48d4..38db14b5 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 @@ func TestLiveServer(t *testing.T) {
},
{
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>`,
},
{