mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-25 03:56:34 +00:00
17 lines
298 B
Go
17 lines
298 B
Go
package consensus
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestChangeView_Setters(t *testing.T) {
|
|
var c changeView
|
|
|
|
c.SetTimestamp(123 * nsInMs)
|
|
require.EqualValues(t, 123*nsInMs, c.Timestamp())
|
|
|
|
c.SetNewViewNumber(2)
|
|
require.EqualValues(t, 2, c.NewViewNumber())
|
|
}
|