Delete tmp folders from tests, Resolve #105

This commit is contained in:
Eduard S
2020-10-20 13:08:40 +02:00
parent 96ceb014bf
commit 88ddbbcddc
9 changed files with 32 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ package statedb
import (
"io/ioutil"
"math/big"
"os"
"testing"
ethCommon "github.com/ethereum/go-ethereum/common"
@@ -15,6 +16,7 @@ import (
func TestGetIdx(t *testing.T) {
dir, err := ioutil.TempDir("", "tmpdb")
require.Nil(t, err)
defer assert.Nil(t, os.RemoveAll(dir))
sdb, err := NewStateDB(dir, TypeTxSelector, 0)
assert.Nil(t, err)