diff --git a/cmd/golangorg/testdata/screentest/relnotes.txt b/cmd/golangorg/testdata/screentest/relnotes.txt index fa3cb364e1..9eb23d027a 100644 --- a/cmd/golangorg/testdata/screentest/relnotes.txt +++ b/cmd/golangorg/testdata/screentest/relnotes.txt @@ -7,5 +7,8 @@ capture fullscreen {{range ints 1 22}} test rl{{.}} path /doc/go1.{{.}} + # dd.indent is added by one of the last bits of JS to run on the page: + # generateTOC in https://go.dev/js/godocs.js. + wait dd.indent capture fullscreen {{end}} diff --git a/cmd/screentest/screentest.go b/cmd/screentest/screentest.go index b3349da3f6..5648b9ef25 100644 --- a/cmd/screentest/screentest.go +++ b/cmd/screentest/screentest.go @@ -13,7 +13,6 @@ package main import ( "bufio" "bytes" - "cmp" "context" "errors" "fmt" @@ -485,17 +484,6 @@ func (tc *testcase) run(ctx context.Context, update bool) (err error) { fmt.Fprintf(&tc.output, "test %s ", tc.name) var testScreen, wantScreen image.Image g, ctx := errgroup.WithContext(ctx) - // If the hosts are the same, chrome (or chromedp) does not handle concurrent requests well. - // This wouldn't make sense in an actual test, but it does happen in this package's tests. - urla, erra := url.Parse(tc.testURL) - urlb, errb := url.Parse(tc.wantURL) - if err := cmp.Or(erra, errb); err != nil { - return err - } - if urla.Host == urlb.Host { - g.SetLimit(1) - } - g.Go(func() error { testScreen, err = tc.screenshot(ctx, tc.testURL, tc.testPath, tc.testImageReader) return err