From 4d43ac5429a20ae02619684ceee374ffafe10722 Mon Sep 17 00:00:00 2001 From: vincentysc Date: Sun, 1 Dec 2024 19:17:01 +0800 Subject: [PATCH] fix test cases --- infrastructure/tendermint/parser_test.go | 1 - projection/chainstats/chainstats_test.go | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/infrastructure/tendermint/parser_test.go b/infrastructure/tendermint/parser_test.go index 0084a4d6a..aaa53288a 100644 --- a/infrastructure/tendermint/parser_test.go +++ b/infrastructure/tendermint/parser_test.go @@ -17,7 +17,6 @@ var _ = Describe("Parser", func() { _, _, err := ParseBlockResp(blockReader) Expect(err).To(BeNil()) - //Expect(block.) }) }) }) diff --git a/projection/chainstats/chainstats_test.go b/projection/chainstats/chainstats_test.go index acf31fc7d..cad4b1a6a 100644 --- a/projection/chainstats/chainstats_test.go +++ b/projection/chainstats/chainstats_test.go @@ -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))) }) })