1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00

test: pass lock by value (#3481)

Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>

Co-authored-by: Prateek Pandey <prateek.pandey@nirmata.com>
This commit is contained in:
Charles-Edouard Brétéché 2022-04-05 17:52:13 +02:00 committed by GitHub
parent 594a04db01
commit 975f6ba7c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -67,6 +67,10 @@ jobs:
- name: Verify generated code is up to date
run: make verify-codegen
- name: Go vet
run: |
make vet
tests:
strategy:
fail-fast: false

View file

@ -215,10 +215,10 @@ func assertEqDataImpl(t *testing.T, expected, actual []byte, formatModifier stri
func assertEqStringAndData(t *testing.T, str string, data []byte) {
var p1 jsonPatch
json.Unmarshal([]byte(str), p1)
json.Unmarshal([]byte(str), &p1)
var p2 jsonPatch
json.Unmarshal([]byte(str), p2)
json.Unmarshal([]byte(str), &p2)
assert.Equal(t, p1, p2)
}