better memdb use in tests

This commit is contained in:
alex.sharov 2022-12-19 10:56:57 +07:00
parent 185141b184
commit 27de232afb

View File

@ -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)