Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Mar 19, 2024
1 parent a316c2b commit f15c6d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions internal/consensus/state_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,8 @@ func (s *StateData) proposalIsTimely() error {
errPrevoteProposalNotTimely, s.Height, s.Round, s.Proposal.Timestamp, s.state.LastBlockTime,
)
}

return nil
}

sp := s.state.ConsensusParams.Synchrony.SynchronyParamsOrDefaults()
Expand Down
2 changes: 1 addition & 1 deletion types/proposal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ func TestIsTimely(t *testing.T) {
}

ti := p.CheckTimely(testCase.recvTime, sp, testCase.round)
assert.Equal(t, testCase.expectTimely, ti)
assert.Equal(t, testCase.expectTimely, ti == 0)
})
}
}

0 comments on commit f15c6d1

Please sign in to comment.