test(s3/lifecycle): gofmt size-filter test

This commit is contained in:
Chris Lu
2026-05-09 23:08:16 -07:00
parent 1a226d2688
commit 1ce184f735
@@ -34,7 +34,7 @@ func TestLifecycleSizeFilterGreaterThan(t *testing.T) {
Status: types.ExpirationStatusEnabled,
Filter: &types.LifecycleRuleFilter{
And: &types.LifecycleRuleAndOperator{
Prefix: aws.String("sz/"),
Prefix: aws.String("sz/"),
ObjectSizeGreaterThan: aws.Int64(threshold),
},
},
@@ -44,8 +44,8 @@ func TestLifecycleSizeFilterGreaterThan(t *testing.T) {
})
require.NoError(t, err)
const smallKey = "sz/small.txt" // size <= threshold → must remain
const largeKey = "sz/large.txt" // size > threshold → must expire
const smallKey = "sz/small.txt" // size <= threshold → must remain
const largeKey = "sz/large.txt" // size > threshold → must expire
putObject(t, c, bucket, smallKey, strings.Repeat("a", threshold)) // exactly at boundary; gate is strictly >, so rejects
putObject(t, c, bucket, largeKey, strings.Repeat("a", threshold+50))