Prototype voter
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user