mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 04:41:22 +00:00
fix test cases
This commit is contained in:
@ -9,6 +9,10 @@ type Time struct {
|
||||
time.Time
|
||||
}
|
||||
|
||||
func TimeFromUnix(secSinceEpoch int64) Time {
|
||||
return Time{time.Unix(secSinceEpoch, 0)}
|
||||
}
|
||||
|
||||
func (self Time) Equals(other interface{}) bool {
|
||||
if o, ok := other.(Time); ok {
|
||||
return self.Equal(o.Time)
|
||||
|
Reference in New Issue
Block a user