Commit 49dad09
committed
Update fuzzer functions to use new randfill.Continue
Fixes the following panic:
=== FAIL: pkg/convert/internal/apis/certmanager/install TestRoundTripTypes (0.00s)
panic: Filler.Funcs: customFuncs' second argument must be a randfill.Continue [recovered]
panic: Filler.Funcs: customFuncs' second argument must be a randfill.Continue
goroutine 20 [running]:
testing.tRunner.func1.2({0xde37c0, 0x10c11e0})
/home/richard/projects/cert-manager/cmctl/_bin/tools/goroot/src/testing/testing.go:1734 +0x21c
testing.tRunner.func1()
/home/richard/projects/cert-manager/cmctl/_bin/tools/goroot/src/testing/testing.go:1737 +0x35e
panic({0xde37c0?, 0x10c11e0?})
/home/richard/projects/cert-manager/cmctl/_bin/tools/goroot/src/runtime/panic.go:792 +0x132
sigs.k8s.io/randfill.(*Filler).Funcs(0xc00012c4e0, {0xc000105880, 0x13, 0xc0001056c0?})
/home/richard/projects/pkg/mod/sigs.k8s.io/[email protected]/randfill.go:145 +0x2b8
k8s.io/apimachinery/pkg/api/apitesting/fuzzer.FuzzerFor(0xc00016fed0, {0x10c5430, 0xc00024d500}, {0xc0002d2000, {0x10c3d60, 0xc00013f158}, {0xc0001056c0, 0x3, 0x4}, {0x10c94f0, ...}})
/home/richard/projects/pkg/mod/k8s.io/[email protected]/pkg/api/apitesting/fuzzer/fuzzer.go:40 +0xcd
k8s.io/apimachinery/pkg/api/apitesting/roundtrip.RoundTripTestForScheme(0xc000105340, 0xc0002d2000, 0xfd33c0)
/home/richard/projects/pkg/mod/k8s.io/[email protected]/pkg/api/apitesting/roundtrip/roundtrip.go:59 +0x1a5
k8s.io/apimachinery/pkg/api/apitesting/roundtrip.RoundTripTestForAPIGroup(0xc000105340, 0xfd1fd0, 0xfd33c0)
/home/richard/projects/pkg/mod/k8s.io/[email protected]/pkg/api/apitesting/roundtrip/roundtrip.go:53 +0x48
github.com/cert-manager/cmctl/v2/pkg/convert/internal/apis/certmanager/install.TestRoundTripTypes(0xc000105340?)
/home/richard/projects/cert-manager/cmctl/pkg/convert/internal/apis/certmanager/install/roundtrip_test.go:28 +0x25
testing.tRunner(0xc000105340, 0xfd1e98)
/home/richard/projects/cert-manager/cmctl/_bin/tools/goroot/src/testing/testing.go:1792 +0xf4
created by testing.(*T).Run in goroutine 1
/home/richard/projects/cert-manager/cmctl/_bin/tools/goroot/src/testing/testing.go:1851 +0x413
Signed-off-by: Richard Wall <[email protected]>1 parent 6fd4d4b commit 49dad09
3 files changed
+12
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
185 | | - | |
186 | 186 | | |
187 | 187 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments