remove fmt.Println in unit test

This commit is contained in:
Tnze
2023-02-21 19:37:55 +08:00
parent d5152ac869
commit c5dd27365e

View File

@ -3,7 +3,6 @@ package nbt
import ( import (
"bytes" "bytes"
"compress/gzip" "compress/gzip"
"fmt"
"io" "io"
"math" "math"
"reflect" "reflect"
@ -445,6 +444,5 @@ func TestDecoder_Decode_ErrorUnknownField(t *testing.T) {
d.DisallowUnknownFields() d.DisallowUnknownFields()
if _, err := d.Decode(&v); err == nil || !strings.Contains(err.Error(), "unknown field") { if _, err := d.Decode(&v); err == nil || !strings.Contains(err.Error(), "unknown field") {
t.Errorf("should return an error unmarshalling unknown field") t.Errorf("should return an error unmarshalling unknown field")
fmt.Println(err)
} }
} }