mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
lint
This commit is contained in:
parent
e4e4c5538b
commit
5348b311ca
1 changed files with 4 additions and 3 deletions
|
|
@ -208,9 +208,10 @@ func genTestChain(t *testing.T) (*core.Genesis, []*types.Block, []types.Receipts
|
||||||
|
|
||||||
// exportChain creates a temporary era file with the given chain.
|
// exportChain creates a temporary era file with the given chain.
|
||||||
func exportChain(t *testing.T, genesis *core.Genesis, chain []*types.Block, receipts []types.Receipts) (string, string) {
|
func exportChain(t *testing.T, genesis *core.Genesis, chain []*types.Block, receipts []types.Receipts) (string, string) {
|
||||||
tmpDir, err := os.MkdirTemp("", "era-test-*")
|
var (
|
||||||
require.NoError(t, err)
|
tmpDir = t.TempDir()
|
||||||
const fileName = "test.era1"
|
fileName = "test.era1"
|
||||||
|
)
|
||||||
tmpFile, err := os.Create(filepath.Join(tmpDir, fileName))
|
tmpFile, err := os.Create(filepath.Join(tmpDir, fileName))
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue