The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
woop/consensus/consensus_fbft_test.go

16 lines
264 B

package consensus
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestLockedFBFTPhase(t *testing.T) {
s := NewLockedFBFTPhase(FBFTAnnounce)
require.Equal(t, FBFTAnnounce, s.Get())
s.Set(FBFTCommit)
require.Equal(t, FBFTCommit, s.Get())
}