From 27de232afb7774635f78d7ad69eb6cf88554861d Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Mon, 19 Dec 2022 10:56:57 +0700 Subject: [PATCH] better memdb use in tests --- ethdb/privateapi/engine_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ethdb/privateapi/engine_test.go b/ethdb/privateapi/engine_test.go index 21737b0d3..539d028c6 100644 --- a/ethdb/privateapi/engine_test.go +++ b/ethdb/privateapi/engine_test.go @@ -86,7 +86,7 @@ func makeTestDb(ctx context.Context, db kv.RwDB) { } func TestMockDownloadRequest(t *testing.T) { - db := memdb.New() + db := memdb.NewTestDB(t) ctx := context.Background() require := require.New(t) @@ -143,7 +143,7 @@ func TestMockDownloadRequest(t *testing.T) { } func TestMockValidExecution(t *testing.T) { - db := memdb.New() + db := memdb.NewTestDB(t) ctx := context.Background() require := require.New(t) @@ -179,7 +179,7 @@ func TestMockValidExecution(t *testing.T) { } func TestMockInvalidExecution(t *testing.T) { - db := memdb.New() + db := memdb.NewTestDB(t) ctx := context.Background() require := require.New(t) @@ -215,7 +215,7 @@ func TestMockInvalidExecution(t *testing.T) { } func TestNoTTD(t *testing.T) { - db := memdb.New() + db := memdb.NewTestDB(t) ctx := context.Background() require := require.New(t)