Update unit tests for functionServiceMap change
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
)
|
||||
|
||||
func TestRouter(t *testing.T) {
|
||||
fmap := makeFunctionServiceMap()
|
||||
fmap := makeFunctionServiceMap(0)
|
||||
fn := &fission.Metadata{Name: "foo", Uid: "xxx"}
|
||||
|
||||
testResponseString := "hi"
|
||||
|
||||
Reference in New Issue
Block a user