core/rawdb/eradb: slim down the testdata

This commit is contained in:
Gary Rong 2025-04-18 17:20:49 +08:00 committed by lightclient
parent 6a5e0b40cd
commit 7711484969
No known key found for this signature in database
GPG key ID: 657913021EF45A6A
4 changed files with 2 additions and 2 deletions

View file

@ -31,7 +31,7 @@ func TestEraDatabase(t *testing.T) {
require.NoError(t, err)
defer db.Close()
r, err := db.GetRawBody(15000)
r, err := db.GetRawBody(1024)
require.NoError(t, err)
var body *types.Body
err = rlp.DecodeBytes(r, &body)
@ -40,7 +40,7 @@ func TestEraDatabase(t *testing.T) {
assert.Equal(t, 0, len(body.Transactions))
// Get Receipts
r, err = db.GetRawReceipts(15000)
r, err = db.GetRawReceipts(1024)
require.NoError(t, err)
var receipts types.Receipts
err = rlp.DecodeBytes(r, &receipts)