Browse Source

Update weed/s3api/s3api_object_handlers_copy_test.go

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
pull/7548/head
Chris Lu 1 week ago
committed by GitHub
parent
commit
c5c18aa0a9
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      weed/s3api/s3api_object_handlers_copy_test.go

5
weed/s3api/s3api_object_handlers_copy_test.go

@ -525,10 +525,7 @@ func TestCleanupVersioningMetadata(t *testing.T) {
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
// Create a copy of the source metadata
dstMetadata := make(map[string][]byte)
for k, v := range tc.sourceMetadata {
dstMetadata[k] = v
}
dstMetadata := maps.Clone(tc.sourceMetadata)
// Call the actual production function
cleanupVersioningMetadata(dstMetadata)

Loading…
Cancel
Save