Skip to content

Commit

Permalink
fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentysc committed Dec 1, 2024
1 parent 12d65c3 commit 4d43ac5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion infrastructure/tendermint/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ var _ = Describe("Parser", func() {

_, _, err := ParseBlockResp(blockReader)
Expect(err).To(BeNil())
//Expect(block.)
})
})
})
6 changes: 3 additions & 3 deletions projection/chainstats/chainstats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ var _ = Describe("Chain Stats", func() {
Describe("genesis time parsing learning test", func() {
It("should parse correctly different variations of time format", func() {
Expect(
utctime.MustParse(time.RFC3339, "2021-03-25T01:00:00Z"),
utctime.MustParse(time.RFC3339, "2021-03-25T01:00:00Z").UnixNano(),
).To(Equal(int64(1616634000000000000)))

Expect(
utctime.MustParse("2006-01-02T15:04:05.000000Z", "2020-12-23T07:30:28.674523Z"),
utctime.MustParse("2006-01-02T15:04:05.000000Z", "2020-12-23T07:30:28.674523Z").UnixNano(),
).To(Equal(int64(1608708628674523000)))
Expect(
utctime.MustParse(time.RFC3339, "2020-12-23T07:30:28.674523Z"),
utctime.MustParse(time.RFC3339, "2020-12-23T07:30:28.674523Z").UnixNano(),
).To(Equal(int64(1608708628674523000)))
})
})
Expand Down

0 comments on commit 4d43ac5

Please sign in to comment.