Skip to content

Commit

Permalink
Test fixes;
Browse files Browse the repository at this point in the history
  • Loading branch information
mismirnov committed Jan 10, 2025
1 parent 5f4cc86 commit ea438f1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions internal/storage/postgres/tvl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ func (s *TransactionTestSuite) TestSaveBulk() {
ctx, ctxCancel := context.WithTimeout(context.Background(), 5*time.Second)
defer ctxCancel()

var saveTime = time.Now().UTC()
var saveTime = time.Now().
UTC().
Truncate(time.Minute)
var newTvl = &storage.Tvl{
Value: 12345,
RollupId: 1,
Expand All @@ -31,6 +33,9 @@ func (s *TransactionTestSuite) TestSaveBulk() {

tvl, err := s.storage.Tvl.LastSyncTime(ctx)
s.Require().NoError(err)
tvlTime := tvl.UTC()
tvlTime := tvl.
UTC().
Truncate(time.Minute)

s.Require().EqualValues(saveTime, tvlTime)
}

0 comments on commit ea438f1

Please sign in to comment.