2019-11-15 10:32:40 +00:00
|
|
|
package consensus
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
)
|
|
|
|
|
2024-03-21 20:38:24 +00:00
|
|
|
func TestRecoveryRequest_Getters(t *testing.T) {
|
|
|
|
var r = &recoveryRequest{
|
|
|
|
timestamp: 123,
|
|
|
|
}
|
2019-11-15 10:32:40 +00:00
|
|
|
|
2020-07-11 12:22:14 +00:00
|
|
|
require.EqualValues(t, 123*nsInMs, r.Timestamp())
|
2019-11-15 10:32:40 +00:00
|
|
|
}
|