Skip to content

Commit 42bfd6b

Browse files
committed
cmd/golangorg: move test case that needs internet to live.txt
One test case added in CL 388016 depends on production resources, specifically the snippet https://play.golang.org/p/MAohLsrz7JQ.go served by the production instance of the Go playground. This would be caught by TryBots where internet access is disabled, but that didn't happen due to golang/go#51444. Updates golang/go#51181. Fixes golang/go#51439. Change-Id: I4f1c5ea1a6ccad9ae4e5cbb749e3dee0b26731b5 Reviewed-on: https://go-review.googlesource.com/c/website/+/389394 Reviewed-by: Bryan Mills <[email protected]> Reviewed-by: Jamal Carvalho <[email protected]> Trust: Dmitri Shuralyov <[email protected]>
1 parent d10dfbe commit 42bfd6b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

cmd/golangorg/testdata/godev.txt

+1-7
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,13 @@ GET https://go.dev/play/p/asdfasdf
4343
body contains The Go Playground
4444
body contains About the Playground
4545

46-
GET https://go.dev/play/p/MAohLsrz7JQ.go
47-
header Content-Type == text/plain; charset=utf-8
48-
body !contains The Go Playground
49-
body !contains About the Playground
50-
body contains Hello, 世界
51-
5246
GET https://golang.google.cn/play/p/asdfasdf
5347
code == 500
5448
body contains Sorry, but shared playground snippets are not visible in China.
5549
body !contains The Go Playground
5650
body !contains About the Playground
5751

58-
GET https://golang.google.cn/play/p/MAohLsrz7JQ.go
52+
GET https://golang.google.cn/play/p/asdfasdf.go
5953
code == 500
6054
body contains Sorry, but shared playground snippets are not visible in China.
6155

cmd/golangorg/testdata/live.txt

+6
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,9 @@ POST https://go.dev/_/share
5656
postbody
5757
package main
5858
body !contains UA-
59+
60+
GET https://go.dev/play/p/MAohLsrz7JQ.go
61+
header Content-Type == text/plain; charset=utf-8
62+
body !contains The Go Playground
63+
body !contains About the Playground
64+
body contains Hello, 世界

0 commit comments

Comments
 (0)