1
0
mirror of https://github.com/distribution/distribution synced 2024-11-06 19:35:52 +01:00

storagedriver/s3: Optimize s3 Delete test cleanup.

(cherry picked from commit e4af4dc3a6da6da724e7cff18cf5b6da6ef2a3fd)
Signed-off-by: Collin Shoop <cshoop@digitalocean.com>
This commit is contained in:
Collin Shoop 2021-08-11 13:00:06 -04:00
parent 03f9eb3a18
commit 6da7217b99

@ -479,11 +479,11 @@ func TestDelete(t *testing.T) {
t.Fatalf("cleanup failed: %s", lastErr)
}
}
defer cleanup(objs)
for _, tc := range tcs {
t.Run(tc.name, func(t *testing.T) {
objs := init()
defer cleanup(objs)
err := driver.Delete(context.Background(), tc.delete)