1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-04-08 10:04:25 +00:00

Removed excess Fatal log

This commit is contained in:
Denis Belyshev 2019-05-27 18:11:39 +03:00
parent 435a19152a
commit a85f646bd4
2 changed files with 1 additions and 3 deletions

View file

@ -66,7 +66,7 @@ func applyOverlay(resource, overlay interface{}, path string) ([]PatchBytes, err
for key, value := range typedOverlay {
if wrappedWithParentheses(key) {
key = key[1 : len(key)-1]
continue
}
currentPath := path + key + "/"
resourcePart, ok := typedResource[key]

View file

@ -2,7 +2,6 @@ package engine
import (
"encoding/json"
"log"
"testing"
jsonpatch "github.com/evanphx/json-patch"
@ -220,7 +219,6 @@ func TestApplyOverlay_TestInsertToArray(t *testing.T) {
assert.Assert(t, decoded != nil)
patched, err := decoded.Apply(resourceRaw)
log.Fatalf("%s", patched)
assert.NilError(t, err)
assert.Assert(t, patched != nil)
}