From dd5f40b9b75f6cbf3dcb2a3152f04ade75b04b48 Mon Sep 17 00:00:00 2001 From: passionSeven Date: Wed, 2 Mar 2022 16:04:41 -0500 Subject: [PATCH] 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 Reviewed-by: Jamal Carvalho Trust: Dmitri Shuralyov --- cmd/golangorg/testdata/godev.txt | 8 +------- cmd/golangorg/testdata/live.txt | 6 ++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/golangorg/testdata/godev.txt b/cmd/golangorg/testdata/godev.txt index 8624c8b1..a85ef489 100644 --- a/cmd/golangorg/testdata/godev.txt +++ b/cmd/golangorg/testdata/godev.txt @@ -43,19 +43,13 @@ GET https://go.dev/play/p/asdfasdf body contains The Go Playground body contains About the Playground -GET https://go.dev/play/p/MAohLsrz7JQ.go -header Content-Type == text/plain; charset=utf-8 -body !contains The Go Playground -body !contains About the Playground -body contains Hello, 世界 - GET https://golang.google.cn/play/p/asdfasdf code == 500 body contains Sorry, but shared playground snippets are not visible in China. body !contains The Go Playground body !contains About the Playground -GET https://golang.google.cn/play/p/MAohLsrz7JQ.go +GET https://golang.google.cn/play/p/asdfasdf.go code == 500 body contains Sorry, but shared playground snippets are not visible in China. diff --git a/cmd/golangorg/testdata/live.txt b/cmd/golangorg/testdata/live.txt index ba30bc9e..fe310ec6 100644 --- a/cmd/golangorg/testdata/live.txt +++ b/cmd/golangorg/testdata/live.txt @@ -56,3 +56,9 @@ POST https://go.dev/_/share postbody package main body !contains UA- + +GET https://go.dev/play/p/MAohLsrz7JQ.go +header Content-Type == text/plain; charset=utf-8 +body !contains The Go Playground +body !contains About the Playground +body contains Hello, 世界