Skip to content

Commit 4d4363a

Browse files
authored
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 <[email protected]>
1 parent 4334efe commit 4d4363a

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ language: go
22
sudo: false
33

44
go:
5-
- 1.11.x
6-
- 1.12.x
5+
- "1.12.x"
6+
- "1.13.x"
77
- tip
88

99
env:

fuzz_test.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,13 @@ func TestCrashNSEC3(t *testing.T) {
147147
// TestNewRRCommentLengthCrasherString test inputs to NewRR that generated crashes.
148148
func TestNewRRCommentLengthCrasherString(t *testing.T) {
149149
tests := []struct {
150-
in string
151-
err string
150+
name string
151+
in string
152+
err string
152153
}{
153154

154155
{
155-
" HINFO ;;;;;;;;;;;;;" +
156+
"HINFO1", " HINFO ;;;;;;;;;;;;;" +
156157
";;;;;;;;\x00\x19;;;;;;;;;;" +
157158
";\u007f;;;;;;;;;;;;;;;;;;" +
158159
";;}mP_Qq_3sJ_1_84X_5" +
@@ -255,7 +256,7 @@ func TestNewRRCommentLengthCrasherString(t *testing.T) {
255256
}
256257

257258
for _, tc := range tests {
258-
t.Run(tc.in, func(t *testing.T) {
259+
t.Run(tc.name, func(t *testing.T) {
259260
_, err := NewRR(tc.in)
260261
if err == nil {
261262
t.Errorf("Expecting error for crasher line %s", tc.in)

0 commit comments

Comments
 (0)