1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-12 22:07:47 +02:00

make the mock sliggghtly more useful

This commit is contained in:
Asim
2016-02-26 00:09:06 +00:00
parent 93b923261c
commit ad0744a95f
2 changed files with 26 additions and 8 deletions

View File

@ -9,13 +9,13 @@ import (
func TestRandomSelector(t *testing.T) {
counts := map[string]int{}
bl := &randomSelector{
rs := &randomSelector{
so: Options{
Registry: mock.NewRegistry(),
},
}
next, err := bl.Select("foo")
next, err := rs.Select("foo")
if err != nil {
t.Errorf("Unexpected error calling random select: %v", err)
}