cmd/gogio: bump screenshot retry timeout

Hoping to fix Wayland flakes:

 TestEndToEnd/X11_using_go_import_path: e2e_test.go:102: starting driver and gio app
    TestEndToEnd/Wayland: e2e_test.go:113: retrying after 200ms
    TestEndToEnd/Wayland: e2e_test.go:113: retrying after 400ms
    TestEndToEnd/Wayland: e2e_test.go:113: last error: encountered 12 color mismatches:
          5,5   got 0xffffffffffff, want 0xdedeadadbebe
        395,5   got 0xffffffffffff, want 0xdedeadadbebe
          5,295 got 0xffffffffffff, want 0xdedeadadbebe
        395,295 got 0xffffffffffff, want 0xdedeadadbebe
          5,305 got 0xffffffffffff, want 0x000000000000
        395,305 got 0xffffffffffff, want 0x000000000000
          5,595 got 0xffffffffffff, want 0x000000000000
        395,595 got 0xffffffffffff, want 0x000000000000
        405,305 got 0xffffffffffff, want 0xbbbbbbbbbbbb
        795,305 got 0xffffffffffff, want 0xbbbbbbbbbbbb
        405,595 got 0xffffffffffff, want 0xbbbbbbbbbbbb
        795,595 got 0xffffffffffff, want 0xbbbbbbbbbbbb

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-03-14 11:51:51 +01:00
parent d994d092ae
commit a50a0db3a2
+1 -1
View File
@@ -110,7 +110,7 @@ func runEndToEndTest(t *testing.T, driver TestDriver, pkgPath string) {
// These are the four colors at the beginning.
t.Log("taking initial screenshot")
withRetries(t, 2*time.Second, func() error {
withRetries(t, 4*time.Second, func() error {
img := driver.Screenshot()
size = img.Bounds().Size() // override the default size
return checkImageCorners(img, beef, white, black, gray)