mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 00:16:15 +00:00
cmd/gogio: raise end-to-end test timeout
Windows tests often flake:
TestEndToEnd/Windows: e2e_test.go:113: last error: encountered 6 color mismatches:
5,5 got 0xffffffffffff, want 0xdedeadadbebe
395,5 got 0xffffffffffff, want 0xdedeadadbebe
5,305 got 0xdedeadadbebe, want 0x000000000000
395,305 got 0xdedeadadbebe, want 0x000000000000
405,305 got 0xffffffffffff, want 0xbbbbbbbbbbbb
795,305 got 0xffffffffffff, want 0xbbbbbbbbbbbb
Bump the timeout as a quick workaround.
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -127,7 +127,7 @@ func runEndToEndTest(t *testing.T, driver TestDriver, pkgPath string) {
|
||||
t.Log("clicking twice and taking another screenshot")
|
||||
driver.Click(1*(size.X/4), 1*(size.Y/4))
|
||||
driver.Click(3*(size.X/4), 3*(size.Y/4))
|
||||
withRetries(t, 2*time.Second, func() error {
|
||||
withRetries(t, 4*time.Second, func() error {
|
||||
img := driver.Screenshot()
|
||||
return checkImageCorners(img, red, white, black, red)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user