Skip to content

Commit

Permalink
Fixed trace unit test
Browse files Browse the repository at this point in the history
Signed-off-by: aryans1204 <arshar1204@gmail.com>
  • Loading branch information
aryans1204 committed Feb 13, 2025
1 parent 2354b54 commit 68f5080
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/trace/mapper_trace_parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func TestMapperParserWrapper(t *testing.T) {
functions[0].InvocationStats == nil ||
functions[0].YAMLPath != "workloads/container/yamls/online-shop/kn-cartservice.yaml" ||
len(functions[0].PredeploymentPath) != 1 ||
functions[0].PredeploymentPath[0] != "kubectl apply -f workloads/container/yamls/online-shop/database.yaml" {
functions[0].PredeploymentPath[0] != "workloads/container/yamls/online-shop/database.yaml" {
t.Error("Unexpected results.")
}
}
4 changes: 2 additions & 2 deletions pkg/trace/test_data/test_deploy_info.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"cartservice": {
"YamlLocation": "workloads/container/yamls/online-shop/kn-cartservice.yaml",
"PredeploymentCommands": [
"kubectl apply -f workloads/container/yamls/online-shop/database.yaml"
"PredeploymentPath": [
"workloads/container/yamls/online-shop/database.yaml"
]
}
}

0 comments on commit 68f5080

Please sign in to comment.