internal/proxydatasource: increase context timeout in tests
The current timeout value (1 second) is too short and causes the
test to fail sporadically.
Fixes b/156383731
CI-Result: Cloud Build
@@ -39,7 +39,7 @@ func setup(t *testing.T) (context.Context, *DataSource, func()) {
},
}
client, teardownProxy := proxy.SetupTestProxy(t, testModules)
- ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
+ ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
return ctx, New(client), func() {
teardownProxy()
cancel()
