frostfs-node/pkg/core/netmap/node/status_test.go

18 lines
224 B
Go
Raw Normal View History

2020-07-24 13:54:03 +00:00
package node
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestStatus_Full(t *testing.T) {
st := new(Status)
st.SetFull()
require.True(t, st.Full())
st.ResetFull()
require.False(t, st.Full())
}