mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +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"
|
"math/big"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
|
"path/filepath"
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
|
@ -516,7 +517,7 @@ func testSupplyTracer(genesis *core.Genesis, gen func(*core.BlockGen)) ([]live.S
|
||||||
engine = beacon.New(ethash.NewFaker())
|
engine = beacon.New(ethash.NewFaker())
|
||||||
)
|
)
|
||||||
|
|
||||||
traceOutputPath := os.TempDir()
|
traceOutputPath := filepath.ToSlash(os.TempDir())
|
||||||
traceOutputFilename := path.Join(traceOutputPath, "supply.jsonl")
|
traceOutputFilename := path.Join(traceOutputPath, "supply.jsonl")
|
||||||
defer os.Remove(traceOutputFilename)
|
defer os.Remove(traceOutputFilename)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue