6337c92cd0
* selector: implement new selector interface plus random & roundrobin implementations * selector/roundrobin: remove unused consts * router: add close method to interface * selector/roundrobin: fix concurrent map iteration and map write * selector: replace variadic argument on Select
12 lines
149 B
Go
12 lines
149 B
Go
package random
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/micro/go-micro/v2/selector"
|
|
)
|
|
|
|
func TestRandom(t *testing.T) {
|
|
selector.Tests(t, NewSelector())
|
|
}
|