Fix bug in merkle/iavl_proof; TODO maybe read zero length slices as nil?

This commit is contained in:
Jae Kwon
2015-07-08 18:27:16 -07:00
parent ff6aa089ea
commit d95234435a
9 changed files with 33 additions and 13 deletions

View File

@ -456,7 +456,7 @@ func TestJSONFieldNames(t *testing.T) {
func TestBadAlloc(t *testing.T) {
n, err := new(int64), new(error)
instance := new([]byte)
data := RandBytes(ByteSliceChunk * 100)
data := RandBytes(100 * 1024)
b := new(bytes.Buffer)
// this slice of data claims to be much bigger than it really is
WriteUvarint(uint(10000000000000000), b, n, err)