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:
parent
594a04db01
commit
975f6ba7c8
2 changed files with 6 additions and 2 deletions
4
.github/workflows/tests.yaml
vendored
4
.github/workflows/tests.yaml
vendored
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue