Files
elect/voter_test.go

18 lines
242 B
Go
Raw Normal View History

2023-05-30 20:12:12 -07:00
package elect_test
import (
"testing"
"github.com/gopatchy/elect"
"github.com/stretchr/testify/require"
)
func TestNew(t *testing.T) {
t.Parallel()
2023-05-30 20:45:13 -07:00
v := elect.NewVoter("[::1]:1234", "abc123")
require.NotNil(t, v)
defer v.Stop()
2023-05-30 20:12:12 -07:00
}