neo-go/pkg/consensus/prepare_response_test.go
Anna Shaleva 3e6dfff503 consensus: fetch dbft pre-0.2.0 version
Try out updated dBFT interface.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
2024-03-25 19:21:50 +03:00

16 lines
307 B
Go

package consensus
import (
"testing"
"github.com/nspcc-dev/neo-go/pkg/util"
"github.com/stretchr/testify/require"
)
func TestPrepareResponse_Setters(t *testing.T) {
var p = prepareResponse{
preparationHash: util.Uint256{1, 2, 3},
}
require.Equal(t, util.Uint256{1, 2, 3}, p.PreparationHash())
}