Prototype voter

This commit is contained in:
Ian Gulliver
2023-05-30 21:45:54 -07:00
parent ac8587bef1
commit 269f9286c6
5 changed files with 104 additions and 19 deletions

View File

@@ -2,6 +2,7 @@ package elect_test
import (
"testing"
"time"
"github.com/gopatchy/elect"
"github.com/stretchr/testify/require"
@@ -10,8 +11,10 @@ import (
func TestNew(t *testing.T) {
t.Parallel()
v := elect.NewVoter("[::1]:1234", "abc123")
v := elect.NewVoter("https://[::1]:1234", "abc123")
require.NotNil(t, v)
time.Sleep(1 * time.Second)
defer v.Stop()
}