Skip to content

Commit

Permalink
remove unnecessary changes in test for debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jianfei Hu committed Dec 13, 2018
1 parent a81eacb commit 05bbadf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
7 changes: 3 additions & 4 deletions pilot/pkg/kube/inject/webhook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,6 @@ func getHelmValues(t *testing.T) string {
func splitYamlFile(yamlFile string, t *testing.T) [][]byte {
t.Helper()
yamlBytes := util.ReadFile(yamlFile, t)
// fmt.Println("yamlBytes jianfeih debug ", string(yamlBytes))
return splitYamlBytes(yamlBytes, t)
}

Expand All @@ -882,9 +881,9 @@ func splitYamlBytes(yaml []byte, t *testing.T) [][]byte {
for _, stringPart := range stringParts {
byteParts = append(byteParts, getInjectableYamlDocs(stringPart, t)...)
}
// if len(byteParts) == 0 {
// t.Skip("Found no injectable parts")
// }
if len(byteParts) == 0 {
t.Skip("Found no injectable parts")
}
return byteParts
}

Expand Down
7 changes: 0 additions & 7 deletions tests/integration2/examples/basic/basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,3 @@ spec:
// As an example, the following method calls the Report operation against Mixer's own API directly.
mixer.Report(t, map[string]interface{}{})
}

func TestProbeRewrite(t *testing.T) {
framework.Requires(t, dependency.Apps)
framework.Requires(t, dependency.Pilot)
env := framework.AcquireEnvironment(t)
fmt.Println("jianfeih debug env ", env)
}

0 comments on commit 05bbadf

Please sign in to comment.