Skip to content

Commit

Permalink
update: Modification of existing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0x-shanks committed Feb 1, 2021
1 parent 3ea40bb commit 9a6f4c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/graph/graph_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ kind: Deployment

dir := "app"
kustomizationFile, _ := file.NewFromFileSystem(fakeFileSystem).GetKustomizationFromDirectory(dir)
graph, err := BuildGraphFromDir(*ctx, "", dir, *kustomizationFile, map[string]*Graph{}, map[string]*Graph{})
patchId := 0
graph, err := BuildGraphFromDir(*ctx, "", dir, *kustomizationFile, &map[string]*Graph{}, &map[string]*Graph{}, &map[string]*Graph{}, &patchId)
assert.Nil(t, err)

expected := "a.yaml"
Expand Down Expand Up @@ -117,7 +118,8 @@ kind: Deployment

dir := "app/sub"
kustomizationFile, _ := file.NewFromFileSystem(fakeFileSystem).GetKustomizationFromDirectory(dir)
graph, err := BuildGraphFromDir(*ctx, "", dir, *kustomizationFile, map[string]*Graph{}, map[string]*Graph{})
patchId := 0
graph, err := BuildGraphFromDir(*ctx, "", dir, *kustomizationFile, &map[string]*Graph{}, &map[string]*Graph{}, &map[string]*Graph{}, &patchId)

assert.Nil(t, err)

Expand Down

0 comments on commit 9a6f4c5

Please sign in to comment.