Skip to content

Commit

Permalink
test: fix incorrect time.getSeconds
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelgrosso1 committed Nov 30, 2023
1 parent 838b56f commit 03fb7aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system-test/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1627,7 +1627,7 @@ describe('storage', () => {

it('should create a file with object retention enabled', async () => {
const time = new Date();
time.setMinutes(time.getSeconds() + 1);
time.setMinutes(time.getMinutes() + 1);
const retention = {mode: 'Unlocked', retainUntilTime: time.toISOString()};
const file = new File(objectRetentionBucket, fileName);
await objectRetentionBucket.upload(FILES.big.path, {
Expand Down

0 comments on commit 03fb7aa

Please sign in to comment.