diff options
| author | Rob Findley <rfindley@google.com> | 2023-04-14 11:34:06 -0400 |
|---|---|---|
| committer | Robert Findley <rfindley@google.com> | 2023-04-14 16:46:39 +0000 |
| commit | c8c7dd529a73cc1a912f7b53ca9d419d59fdc263 (patch) | |
| tree | 79f3849f42e92144179ecfbe00a580546497a69b /internal/fetchdatasource/fetchdatasource_test.go | |
| parent | ef53dd0427aa756675281d9c7ba2af416c44c857 (diff) | |
| download | go-x-pkgsite-c8c7dd529a73cc1a912f7b53ca9d419d59fdc263.tar.xz | |
internal/fetchdatasource: remove arbitrary test timeout
Kokoro tests are failing with this arbitrary timeout. Remove it.
Updates golang/go#59608
Change-Id: Ifd3d8cf02d5c14f54e505fa5812e8de7dbc6c5d5
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/484738
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Diffstat (limited to 'internal/fetchdatasource/fetchdatasource_test.go')
| -rw-r--r-- | internal/fetchdatasource/fetchdatasource_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/fetchdatasource/fetchdatasource_test.go b/internal/fetchdatasource/fetchdatasource_test.go index ecc63fda..8f931053 100644 --- a/internal/fetchdatasource/fetchdatasource_test.go +++ b/internal/fetchdatasource/fetchdatasource_test.go @@ -12,7 +12,6 @@ import ( "os" "regexp" "testing" - "time" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" @@ -117,7 +116,7 @@ func buildLocalGetters() ([]fetch.ModuleGetter, func()) { func setup(t *testing.T, testModules []*proxytest.Module, bypassLicenseCheck bool) (context.Context, *FetchDataSource, func()) { t.Helper() - ctx, cancel := context.WithTimeout(context.Background(), 40*time.Second) + ctx, cancel := context.WithCancel(context.Background()) var client *proxy.Client teardownProxy := func() {} |
