internal/worker: increase timeout for TestTrimLargeCode
TestTrimLargeCode has been timing out in CI, so the timeout is
increased.
Trust: Julie Qiu
Run-TryBot: Julie Qiu
@@ -287,7 +287,7 @@ func TestFetchAndUpdateState_ProxyTimedOut(t *testing.T) {
// This makes it viable for us to show documentation for packages that
// would otherwise exceed HTML size limit and not get shown at all.
func TestTrimLargeCode(t *testing.T) {
- ctx, cancel := context.WithTimeout(context.Background(), testTimeout)
+ ctx, cancel := context.WithTimeout(context.Background(), testTimeout*2)
defer cancel()
defer postgres.ResetTestDB(testDB, t)
trimmedModule := map[string]string{
