Files
elect/voter_test.go
Ian Gulliver ac8587bef1 Voter loop
2023-05-30 20:45:13 -07:00

18 lines
242 B
Go

package elect_test
import (
"testing"
"github.com/gopatchy/elect"
"github.com/stretchr/testify/require"
)
func TestNew(t *testing.T) {
t.Parallel()
v := elect.NewVoter("[::1]:1234", "abc123")
require.NotNil(t, v)
defer v.Stop()
}