From c832c135018fb642d47f628dea40fd4a673d9e1e Mon Sep 17 00:00:00 2001 From: jonaustin09 Date: Tue, 12 Dec 2023 15:38:49 -0500 Subject: [PATCH] fix: Resolved tests closer bug --- cmd/versitygw/test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cmd/versitygw/test.go b/cmd/versitygw/test.go index c1c52178..822612c9 100644 --- a/cmd/versitygw/test.go +++ b/cmd/versitygw/test.go @@ -268,9 +268,11 @@ func getAction(tf testFunc) func(*cli.Context) error { func extractIntTests() (commands []*cli.Command) { tests := integration.GetIntTests() for key, val := range tests { + testKey := key + testFunc := val commands = append(commands, &cli.Command{ - Name: key, - Usage: fmt.Sprintf("Runs %v integration test", key), + Name: testKey, + Usage: fmt.Sprintf("Runs %v integration test", testKey), Action: func(ctx *cli.Context) error { opts := []integration.Option{ integration.WithAccess(awsID), @@ -283,7 +285,7 @@ func extractIntTests() (commands []*cli.Command) { } s := integration.NewS3Conf(opts...) - err := val(s) + err := testFunc(s) return err }, })