Skip to content

Commit 3cd5e69

Browse files
committed
s3testing: fail waiting for minio server to be ready after 10s
1 parent e2f610e commit 3cd5e69

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backends/s3/s3testing/minio.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ func ServeMinio(ctx context.Context, dir string) (string, func() error, error) {
4848

4949
// Wait for server to accept requests.
5050
readyURL := "http://" + addr + "/minio/health/ready"
51+
ctx, cancel := context.WithTimeout(ctx, 10*time.Second)
52+
defer cancel()
5153
ticker := time.NewTicker(30 * time.Millisecond)
5254
defer ticker.Stop()
5355
for {

0 commit comments

Comments
 (0)