mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-03 19:58:17 +00:00
Fix tests to pass with changed external types
This commit is contained in:
@@ -110,8 +110,13 @@ func TestSpecificKind(t *testing.T) {
|
||||
api.Scheme.Log(t)
|
||||
defer api.Scheme.Log(nil)
|
||||
|
||||
kind := "Pod"
|
||||
doRoundTripTest(kind, t)
|
||||
kind := "JobList"
|
||||
for i := 0; i < *fuzzIters; i++ {
|
||||
doRoundTripTest(kind, t)
|
||||
if t.Failed() {
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestList(t *testing.T) {
|
||||
@@ -142,6 +147,9 @@ func TestRoundTripTypes(t *testing.T) {
|
||||
// Try a few times, since runTest uses random values.
|
||||
for i := 0; i < *fuzzIters; i++ {
|
||||
doRoundTripTest(kind, t)
|
||||
if t.Failed() {
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user