Skip to content

Commit

Permalink
AWS Test suite : fix cancel context
Browse files Browse the repository at this point in the history
  • Loading branch information
nabbar committed Jan 14, 2022
1 parent b95e1a6 commit 74be9a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aws/aws_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ func LaunchMinio(host, accessKey, secretKey string) {

if _, minio, _, ok := runtime.Caller(0); ok {
if err := exec.CommandContext(ctx, path.Join(path.Dir(minio), "minio"), "server", "--address", host, tmp).Run(); err != nil {
if ctx.Err() != nil {
return
}
panic(err)
}
} else {
Expand Down

0 comments on commit 74be9a7

Please sign in to comment.