test(storage): re-enable full CustomTime test (#2818)
Internal bug blocking this has been fixed and I verified
that the test now passes locally. Rollout will be at
100% tomorrow.
diff --git a/storage/integration_test.go b/storage/integration_test.go
index 4b77494..273327e 100644
--- a/storage/integration_test.go
+++ b/storage/integration_test.go
@@ -2691,11 +2691,10 @@
}
// Update CustomTime to the past should give error.
- // TODO(tritone): uncomment once internal bug is fixed.
- //earlierTime := ct.Add(5*time.Hour)
- //if _, err := obj.Update(ctx, ObjectAttrsToUpdate{CustomTime:earlierTime}); err == nil {
- // t.Fatalf("backdating CustomTime: expected error, got none")
- //}
+ earlierTime := ct.Add(5 * time.Hour)
+ if _, err := obj.Update(ctx, ObjectAttrsToUpdate{CustomTime: earlierTime}); err == nil {
+ t.Fatalf("backdating CustomTime: expected error, got none")
+ }
// Zero value for CustomTime should be ignored.
if _, err := obj.Update(ctx, ObjectAttrsToUpdate{}); err != nil {