diff --git a/router/functionHandler_test.go b/router/functionHandler_test.go index 2d7537a8..c25a50d1 100644 --- a/router/functionHandler_test.go +++ b/router/functionHandler_test.go @@ -50,7 +50,7 @@ func TestFunctionProxying(t *testing.T) { log.Printf("Created backend svc at %v", backendURL) fn := &fission.Metadata{Name: "foo", Uid: "xxx"} - fmap := makeFunctionServiceMap() + fmap := makeFunctionServiceMap(0) fmap.assign(fn, backendURL) fh := &functionHandler{fmap: fmap, Function: *fn} diff --git a/router/functionServiceMap_test.go b/router/functionServiceMap_test.go index 9a57cc56..55cd98e4 100644 --- a/router/functionServiceMap_test.go +++ b/router/functionServiceMap_test.go @@ -24,7 +24,7 @@ import ( ) func TestFunctionServiceMap(t *testing.T) { - m := makeFunctionServiceMap() + m := makeFunctionServiceMap(0) fn := &fission.Metadata{Name: "foo", Uid: "012"} u, err := url.Parse("/foo012") if err != nil { diff --git a/router/router_test.go b/router/router_test.go index 521c6cd4..0df37ea2 100644 --- a/router/router_test.go +++ b/router/router_test.go @@ -25,7 +25,7 @@ import ( ) func TestRouter(t *testing.T) { - fmap := makeFunctionServiceMap() + fmap := makeFunctionServiceMap(0) fn := &fission.Metadata{Name: "foo", Uid: "xxx"} testResponseString := "hi"