Skip to content

Commit 5a28f11

Browse files
authored
chore: wait up to 5 seconds for Docker to start (GoogleCloudPlatform#3264)
1 parent f8842f1 commit 5a28f11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wrappers/golang/pgadapter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ func startDocker(ctx context.Context, config Config) (pgadapter *PGAdapter, err
670670
}
671671
pgadapter.port = mappedPort.Int()
672672
// Wait for PGAdapter to start.
673-
if err := waitForPort(pgadapter.port /* initialWait = */, 0, 50*time.Millisecond, 20); err != nil {
673+
if err := waitForPort(pgadapter.port, 50*time.Millisecond, 50*time.Millisecond, 100); err != nil {
674674
return nil, err
675675
}
676676
return pgadapter, nil

0 commit comments

Comments
 (0)