mirror of
https://github.com/versity/versitygw.git
synced 2026-01-03 10:35:15 +00:00
fix: Resolved tests closer bug
This commit is contained in:
@@ -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
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user