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