From 74be9a73c4488df0c4a5feb99b99a92c6f304c4f Mon Sep 17 00:00:00 2001 From: Nicolas JUHEL Date: Fri, 14 Jan 2022 13:10:52 +0100 Subject: [PATCH] AWS Test suite : fix cancel context --- aws/aws_suite_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aws/aws_suite_test.go b/aws/aws_suite_test.go index 3d61637a..3a1113d0 100644 --- a/aws/aws_suite_test.go +++ b/aws/aws_suite_test.go @@ -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 {