Skip to content

Commit

Permalink
Add round trip tests for default encoding
Browse files Browse the repository at this point in the history
Turn down iterations a bit for speed
  • Loading branch information
smarterclayton committed Sep 16, 2014
1 parent 61e3ce7 commit 2330734
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion pkg/api/serialization_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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)
}
}
}
Expand Down

0 comments on commit 2330734

Please sign in to comment.