move test data

This commit is contained in:
Asim Aslam
2019-11-16 18:52:27 +00:00
parent 90d7a87914
commit eeed493766
5 changed files with 13 additions and 11 deletions

View File

@@ -7,13 +7,14 @@ import (
proto "github.com/micro/go-micro/debug/proto"
"github.com/micro/go-micro/registry/memory"
"github.com/micro/go-micro/util/test"
)
func TestFunction(t *testing.T) {
var wg sync.WaitGroup
wg.Add(1)
r := memory.NewRegistry(memory.Services(testData))
r := memory.NewRegistry(memory.Services(test.Data))
// create service
fn := NewFunction(