Voter loop
This commit is contained in:
17
voter_test.go
Normal file
17
voter_test.go
Normal 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()
|
||||
}
|
||||
Reference in New Issue
Block a user