@@ -359,7 +359,7 @@ var _ = Describe("JSONPatch", func() {
359
359
Ω (err ).ShouldNot (HaveOccurred ())
360
360
})
361
361
362
- for i := 0 ; i < 10 ; i ++ {
362
+ for i := 0 ; i < 100 ; i ++ {
363
363
It ("fuzzy " + strconv .Itoa (i ), func () {
364
364
testPatch (modified , current )
365
365
})
@@ -371,13 +371,13 @@ var _ = Describe("JSONPatch", func() {
371
371
modifiedJSON , err := json .Marshal (modified )
372
372
Ω (err ).ShouldNot (HaveOccurred ())
373
373
374
- var bytes [] byte
374
+ var bytes jsonpatch. Patch
375
375
var changes int
376
376
_ = b .Time ("runtime" , func () {
377
377
bytes , changes , err = jsonpatch .CreateJSONPatch (modified , current )
378
378
})
379
379
Ω (err ).ShouldNot (HaveOccurred ())
380
- if string ( bytes ) == "" {
380
+ if bytes . Empty () {
381
381
Ω (currentJSON ).Should (MatchJSON (modifiedJSON ))
382
382
Ω (changes ).Should (Equal (0 ))
383
383
return
@@ -388,7 +388,7 @@ var _ = Describe("JSONPatch", func() {
388
388
patchedJSON , err := jsonPatch .Apply (currentJSON )
389
389
Ω (err ).ShouldNot (HaveOccurred ())
390
390
Ω (patchedJSON ).Should (MatchJSON (modifiedJSON ))
391
- }, 10 )
391
+ }, 100 )
392
392
})
393
393
})
394
394
0 commit comments