From a438fcaadcadc7f807ba8c0e760c21a006160bdf Mon Sep 17 00:00:00 2001 From: Rob Findley Date: Tue, 28 Jul 2020 14:42:28 -0400 Subject: [PATCH] internal/proxydatasource: increase test timeout This test suite is flaking in CI, with a relatively short timeout of 5s. Increase to 20s. Change-Id: Ifb9095d8b453a68e756e4dbf87d80eb4cbecf6e8 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/245320 Run-TryBot: Robert Findley TryBot-Result: kokoro Reviewed-by: Jonathan Amsterdam --- internal/proxydatasource/datasource_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/proxydatasource/datasource_test.go b/internal/proxydatasource/datasource_test.go index 9b26c4ec8..02fa113e6 100644 --- a/internal/proxydatasource/datasource_test.go +++ b/internal/proxydatasource/datasource_test.go @@ -43,7 +43,7 @@ func setup(t *testing.T) (context.Context, *DataSource, func()) { }, } client, teardownProxy := proxy.SetupTestProxy(t, testModules) - ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) + ctx, cancel := context.WithTimeout(context.Background(), 20*time.Second) return ctx, New(client), func() { teardownProxy() cancel()