mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
fix temp path on Windows by converting backslashes to slashes
This commit is contained in:
parent
55a9f40b4e
commit
5db20834f0
1 changed files with 2 additions and 1 deletions
|
|
@ -23,6 +23,7 @@ import (
|
|||
"math/big"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
|
|
@ -516,7 +517,7 @@ func testSupplyTracer(genesis *core.Genesis, gen func(*core.BlockGen)) ([]live.S
|
|||
engine = beacon.New(ethash.NewFaker())
|
||||
)
|
||||
|
||||
traceOutputPath := os.TempDir()
|
||||
traceOutputPath := filepath.ToSlash(os.TempDir())
|
||||
traceOutputFilename := path.Join(traceOutputPath, "supply.jsonl")
|
||||
defer os.Remove(traceOutputFilename)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue