make sure the tmp is not be covered

This commit is contained in:
maskpp 2025-09-07 23:09:59 +08:00
parent 0d362be009
commit 884cbae493

View file

@ -435,7 +435,7 @@ func TestEncodeToBytes(t *testing.T) {
}
func TestEncodeAppendToBytes(t *testing.T) {
buffer := make([]byte, 3)
buffer := make([]byte, 20)
runEncTests(t, func(val interface{}) ([]byte, error) {
w := NewEncoderBuffer(nil)
defer w.Flush()