Add round trip tests for default encoding

Turn down iterations a bit for speed
This commit is contained in:
Clayton Coleman 2014-09-16 15:22:49 -04:00
parent 61e3ce7ddc
commit 23307344ee
2 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,7 @@ install:
- ./hack/build-go.sh
script:
- ./hack/test-go.sh
- KUBE_TIMEOUT='-timeout 60s' ./hack/test-go.sh
- PATH=$HOME/gopath/bin:./third_party/etcd/bin:$PATH ./hack/test-cmd.sh
- PATH=$HOME/gopath/bin:./third_party/etcd/bin:$PATH ./hack/test-integration.sh

View File

@ -31,7 +31,7 @@ import (
"github.com/google/gofuzz"
)
var fuzzIters = flag.Int("fuzz_iters", 50, "How many fuzzing iterations to do.")
var fuzzIters = flag.Int("fuzz_iters", 40, "How many fuzzing iterations to do.")
// apiObjectFuzzer can randomly populate api objects.
var apiObjectFuzzer = fuzz.New().NilChance(.5).NumElements(1, 1).Funcs(
@ -166,6 +166,7 @@ func TestTypes(t *testing.T) {
for i := 0; i < *fuzzIters; i++ {
runTest(t, v1beta1.Codec, item)
runTest(t, v1beta2.Codec, item)
runTest(t, api.Codec, item)
}
}
}