Skip to content

Commit

Permalink
Update test to cover timezone changes
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Shishkin <[email protected]>
  • Loading branch information
teran authored and litaocdl committed Aug 27, 2024
1 parent 38403b7 commit d506778
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/management/catalog/catalog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,5 +245,9 @@ var _ = Describe("barman-cloud-backup-show parsing", func() {
Expect(result.SystemID).To(Equal("6885668674852188181"))
Expect(result.BeginTimeString).To(Equal("Tue Jan 19 03:14:08 2038"))
Expect(result.EndTimeString).To(Equal("Tue Jan 19 04:14:08 2038"))

// Test timezone set in the parsed time is equal to local one
Expect(result.BeginTime.Location()).To(Equal(time.Now().Location()))
Expect(result.EndTime.Location()).To(Equal(time.Now().Location()))
})
})

0 comments on commit d506778

Please sign in to comment.