remove fmt.Println in unit test
This commit is contained in:
@ -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)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user