Voter loop

This commit is contained in:
Ian Gulliver
2023-05-30 20:45:13 -07:00
parent 453d73c245
commit ac8587bef1
6 changed files with 81 additions and 26 deletions

17
voter_test.go Normal file
View File

@@ -0,0 +1,17 @@
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()
}