Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0985a84

Browse files
Update coderd/database/dbtestutil/postgres.go
Co-authored-by: Hugo Dutka <[email protected]>
1 parent 5c7efe5 commit 0985a84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/database/dbtestutil/postgres.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func initDefaultConnection(t TBSubset) error {
8282

8383
var dbErr error
8484
// Retry up to 3 seconds for temporary errors.
85-
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
85+
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
8686
defer cancel()
8787
for r := retry.New(10*time.Millisecond, 500*time.Millisecond); r.Wait(ctx); {
8888
dbErr = attemptConn()

0 commit comments

Comments
 (0)