From 4d4363a5dcddf0cf274ec8d567351457b4d96998 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Sun, 20 Oct 2019 07:12:43 +0100 Subject: [PATCH] build: reduce testing output (#1031) 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 --- .travis.yml | 4 ++-- fuzz_test.go | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index c450c9f9..7661bfd8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,8 +2,8 @@ language: go sudo: false go: - - 1.11.x - - 1.12.x + - "1.12.x" + - "1.13.x" - tip env: diff --git a/fuzz_test.go b/fuzz_test.go index d597f41d..366fa9d7 100644 --- a/fuzz_test.go +++ b/fuzz_test.go @@ -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" + @@ -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)