test(storage): re-enable full CustomTime test
Internal bug blocking this has been fixed and I verified
that the test now passes locally. Rollout will be at
100% tomorrow.
@@ -2691,11 +2691,10 @@ func TestIntegration_CustomTime(t *testing.T) {
}
// 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 {
