diff --git a/tests/browser_context_test.go b/tests/browser_context_test.go index 9721d82b8..5a6118759 100644 --- a/tests/browser_context_test.go +++ b/tests/browser_context_test.go @@ -639,7 +639,7 @@ func TestBrowserContextTimeout(t *testing.T) { tb := newTestBrowser(t, withHTTPServer()) tb.withHandler("/slow", func(w http.ResponseWriter, _ *http.Request) { - time.Sleep(1000 * time.Millisecond) + time.Sleep(100 * time.Millisecond) fmt.Fprintf(w, `sorry for being so slow`) }) diff --git a/tests/page_test.go b/tests/page_test.go index bcac8da83..d965cbc76 100644 --- a/tests/page_test.go +++ b/tests/page_test.go @@ -1025,7 +1025,7 @@ func TestPageTimeout(t *testing.T) { tb := newTestBrowser(t, withHTTPServer()) tb.withHandler("/slow", func(w http.ResponseWriter, _ *http.Request) { - time.Sleep(1000 * time.Millisecond) + time.Sleep(100 * time.Millisecond) fmt.Fprintf(w, `sorry for being so slow`) })