Update unit tests for functionServiceMap change

This commit is contained in:
Soam Vasani
2016-11-04 23:05:29 -07:00
parent 78687d24b3
commit 68f860dcb3
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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}
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -25,7 +25,7 @@ import (
)
func TestRouter(t *testing.T) {
fmap := makeFunctionServiceMap()
fmap := makeFunctionServiceMap(0)
fn := &fission.Metadata{Name: "foo", Uid: "xxx"}
testResponseString := "hi"