mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 13:41:37 +00:00
708b439f4a
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
18 lines
334 B
Go
18 lines
334 B
Go
package consensus
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/nspcc-dev/dbft"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestChangeView_Getters(t *testing.T) {
|
|
var c = &changeView{
|
|
newViewNumber: 2,
|
|
reason: dbft.CVTimeout,
|
|
}
|
|
|
|
require.EqualValues(t, 2, c.NewViewNumber())
|
|
require.EqualValues(t, dbft.CVTimeout, c.Reason())
|
|
}
|