Skip to content

Commit

Permalink
build: reduce testing output (#1031)
Browse files Browse the repository at this point in the history
Use a better name in the fuzzing test to not spam the travis output,
move to Go 1.13.x in travis.yaml

Signed-off-by: Miek Gieben <[email protected]>
  • Loading branch information
miekg authored Oct 20, 2019
1 parent 4334efe commit 4d4363a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ language: go
sudo: false

go:
- 1.11.x
- 1.12.x
- "1.12.x"
- "1.13.x"
- tip

env:
Expand Down
9 changes: 5 additions & 4 deletions fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,13 @@ func TestCrashNSEC3(t *testing.T) {
// TestNewRRCommentLengthCrasherString test inputs to NewRR that generated crashes.
func TestNewRRCommentLengthCrasherString(t *testing.T) {
tests := []struct {
in string
err string
name string
in string
err string
}{

{
" HINFO ;;;;;;;;;;;;;" +
"HINFO1", " HINFO ;;;;;;;;;;;;;" +
";;;;;;;;\x00\x19;;;;;;;;;;" +
";\u007f;;;;;;;;;;;;;;;;;;" +
";;}mP_Qq_3sJ_1_84X_5" +
Expand Down Expand Up @@ -255,7 +256,7 @@ func TestNewRRCommentLengthCrasherString(t *testing.T) {
}

for _, tc := range tests {
t.Run(tc.in, func(t *testing.T) {
t.Run(tc.name, func(t *testing.T) {
_, err := NewRR(tc.in)
if err == nil {
t.Errorf("Expecting error for crasher line %s", tc.in)
Expand Down

0 comments on commit 4d4363a

Please sign in to comment.